Contents

la_vector_from_matrix_col(_:_:)

Creates a vector from the specified column of the matrix.

Declaration

func la_vector_from_matrix_col(_ matrix: la_object_t, _ matrix_col: la_count_t) -> la_object_t

Parameters

  • matrix:

    Matrix from which to create the column vector.

  • matrix_col:

    The zero-based index of the column to create the vector from.

Return Value

The resulting vector is a rows(matrix) x 1 vector.

Discussion

Creates a vector from the specified column of the matrix. If the value for matrix_col is less than zero or greater than cols(matrix)-1, LA_INVALID_PARAMETER_ERROR is returned.

If matrix is a splat, LA_INVALID_PARAMETER_ERROR is returned.

Always returns a vector_length x 1 vector.

See Also

Functions