Type Definition munum::Vector

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

A column matrix aka vector

Implementations

Creates a vector from raw array.

Examples
let v = Vector::<f32, 4>::from_array([1., 2., 3., 4.]);
assert_eq!(*v.as_ref(), [1., 2., 3., 4.]);

Trait Implementations

Converts to this type from the input type.