SMatrix in nalgebra::base - Rust
Description: A statically sized column-major matrix with `R` rows and `C` columns.
Keywords: rust, rustlang, rust-lang, SMatrix

# Type Definition nalgebra::base::SMatrix

source ·

    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§

source§

### impl<T, const R: usize, const C: usize> SMatrix<T, R, C>

source

#### 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§

source§

### 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,

source§

#### fn div_assign(&mut self, right: &'b Rotation<T, C1>)

Performs the `/=` operation. Read more
source§

### impl<T, const R1: usize, const C1: usize> DivAssign<Rotation<T, C1>> for SMatrix<T, R1, C1>where
T: Scalar + Zero + One + ClosedAdd + ClosedMul,

source§

#### fn div_assign(&mut self, right: Rotation<T, C1>)

Performs the `/=` operation. Read more
source§

### impl<T: Scalar, const R: usize, const C: usize> From<[[T; R]; C]> for SMatrix<T, R, C>

source§

#### fn from(arr: [[T; R]; C]) -> Self

Converts to this type from the input type.
source§

### impl<'b, T, const R1: usize, const C1: usize> MulAssign<&'b Rotation<T, C1>> for SMatrix<T, R1, C1>where
T: Scalar + Zero + One + ClosedAdd + ClosedMul,

source§

#### fn mul_assign(&mut self, right: &'b Rotation<T, C1>)

Performs the `*=` operation. Read more
source§

### impl<T, const R1: usize, const C1: usize> MulAssign<Rotation<T, C1>> for SMatrix<T, R1, C1>where
T: Scalar + Zero + One + ClosedAdd + ClosedMul,

source§

#### fn mul_assign(&mut self, right: Rotation<T, C1>)

Performs the `*=` operation. Read more