Expand description
A special case type alias for Matrices with a single column.
Construct a column vector from an array.
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]]));
sourceimpl<TLhs: Copy, TRhs: Copy, TOutput, const M: usize> Dot<Matrix<TRhs, M, 1_usize>> for Vector<TLhs, M> where
TLhs: Mul<TRhs, Output = TOutput> + MulAdd<TRhs, TOutput, Output = TOutput>,
TOutput: Zero,
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