[−][src]Struct doem_math::Matrix
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.
fn add(self, rhs: &Matrix<M, N>) -> Self::Output
[src]
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.
fn index(&self, index: usize) -> &Self::Output
[src]
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.
fn mul(self, rhs: &Matrix<N, P>) -> Self::Output
[src]
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.
fn mul(self, rhs: Scalar) -> Self::Output
[src]
impl<'_, '_, const M: usize, const N: usize> Sub<&'_ Matrix<M, N>> for &'_ Matrix<M, N>
[src]
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,