pub type SMatrix<T, const R: usize, const C: usize> = Matrix<T, Const<R>, Const<C>, ArrayStorage<T, R, C>>;
Expand description
A statically sized column-major matrix with R
rows and C
columns.
Because this is an alias, not all its methods are listed here. See the Matrix
type too.
Implementations
sourceimpl<T, const R: usize, const C: usize> SMatrix<T, R, C>
impl<T, const R: usize, const C: usize> SMatrix<T, R, C>
sourcepub const fn from_array_storage(storage: ArrayStorage<T, R, C>) -> Self
pub const fn from_array_storage(storage: ArrayStorage<T, R, C>) -> Self
Creates a new statically-allocated matrix from the given ArrayStorage.
This method exists primarily as a workaround for the fact that from_data
can not
work in const fn
contexts.
Trait Implementations
sourceimpl<'b, T, const R1: usize, const C1: usize> DivAssign<&'b Rotation<T, C1>> for SMatrix<T, R1, C1> where
T: Scalar + Zero + One + ClosedAdd + ClosedMul,
impl<'b, T, const R1: usize, const C1: usize> DivAssign<&'b Rotation<T, C1>> for SMatrix<T, R1, C1> where
T: Scalar + Zero + One + ClosedAdd + ClosedMul,
sourcefn div_assign(&mut self, right: &'b Rotation<T, C1>)
fn div_assign(&mut self, right: &'b Rotation<T, C1>)
Performs the /=
operation. Read more
sourceimpl<T, const R1: usize, const C1: usize> DivAssign<Rotation<T, C1>> for SMatrix<T, R1, C1> where
T: Scalar + Zero + One + ClosedAdd + ClosedMul,
impl<T, const R1: usize, const C1: usize> DivAssign<Rotation<T, C1>> for SMatrix<T, R1, C1> where
T: Scalar + Zero + One + ClosedAdd + ClosedMul,
sourcefn div_assign(&mut self, right: Rotation<T, C1>)
fn div_assign(&mut self, right: Rotation<T, C1>)
Performs the /=
operation. Read more