Type Definition sized_matrix::Vector

source · []
pub type Vector<T, const M: usize> = Matrix<T, M, 1>;
Expand description

A special case type alias for Matrices with a single column.

Implementations

Construct a column vector from an array.

Examples

Constructing a Vector:

use sized_matrix::{Vector, Matrix};

let vector: Vector<i32, 3> = Vector::vector([1, 2, 3]);

assert_eq!(vector, Matrix::cols([[1, 2, 3]]));

Trait Implementations

Returns self · rhs.

The returned type after indexing.

Performs the indexing (container[index]) operation. Read more

Performs the mutable indexing (container[index]) operation. Read more

Initialise an instance of this type using value by applying elem to each ‘index’ of the type. Read more

Initialise an instance of this type by applying elem to each ‘index’ of the type. Read more

Get a section of type TOut starting at offset offset. Read more