[][src]Struct doem_math::Matrix

pub struct Matrix<const M: usize, const N: usize> {
    pub data: StaticVec<StaticVec<Scalar, N>, M>,
}

Fields

data: StaticVec<StaticVec<Scalar, N>, M>

Methods

impl<const M: usize, const N: usize> Matrix<M, N>[src]

pub fn origin() -> Self[src]

pub fn copy_to_array(&self) -> [[Scalar; N]; M][src]

pub fn transpose(&self) -> Matrix<M, N>[src]

pub fn sum(&self) -> Scalar[src]

Trait Implementations

impl<'_, '_, const M: usize, const N: usize> Add<&'_ Matrix<M, N>> for &'_ Matrix<M, N>[src]

type Output = Matrix<M, N>

The resulting type after applying the + operator.

impl<const M: usize, const N: usize> Clone for Matrix<M, N>[src]

impl<const M: usize, const N: usize> Default for Matrix<M, N>[src]

impl<const M: usize, const N: usize> Display for Matrix<M, N>[src]

impl<const M: usize, const N: usize> From<[[f32; N]; M]> for Matrix<M, N>[src]

impl<const M: usize, const N: usize> From<StaticVec<StaticVec<f32, N>, M>> for Matrix<M, N>[src]

impl<const M: usize, const N: usize> Index<usize> for Matrix<M, N>[src]

type Output = StaticVec<Scalar, N>

The returned type after indexing.

impl<const M: usize, const N: usize> IndexMut<usize> for Matrix<M, N>[src]

impl<const M: usize, const N: usize> Into<[[f32; N]; M]> for Matrix<M, N>[src]

impl<'_, '_, const M: usize, const N: usize, const P: usize> Mul<&'_ Matrix<N, P>> for &'_ Matrix<M, N>[src]

type Output = Matrix<M, P>

The resulting type after applying the * operator.

impl<'_, const M: usize, const N: usize> Mul<f32> for &'_ Matrix<M, N>[src]

type Output = Matrix<M, N>

The resulting type after applying the * operator.

impl<'_, '_, const M: usize, const N: usize> Sub<&'_ Matrix<M, N>> for &'_ Matrix<M, N>[src]

type Output = Matrix<M, N>

The resulting type after applying the - operator.

Auto Trait Implementations

impl<const M: usize, const N: usize> RefUnwindSafe for Matrix<M, N>

impl<const M: usize, const N: usize> Send for Matrix<M, N>

impl<const M: usize, const N: usize> Sync for Matrix<M, N>

impl<const M: usize, const N: usize> Unpin for Matrix<M, N>

impl<const M: usize, const N: usize> UnwindSafe for Matrix<M, N>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.