[][src]Struct static_math::matrix5x5::M55

pub struct M55<T>(_);

A static Matrix of 5x5 shape

Implementations

impl<T> M55<T>[src]

pub fn new(data_input: [[T; 5]; 5]) -> Self[src]

pub fn rows(&self) -> usize[src]

pub fn cols(&self) -> usize[src]

impl<T: Num + Copy> M55<T>[src]

pub fn identity() -> M55<T>[src]

contruct identity matrix

pub fn zeros() -> M55<T>[src]

construct the matrix with all zeros

pub fn as_vec(&self) -> [T; 25][src]

transform the matrix to a flatten vector

pub fn new_from_vecs(cols: V5<V5<T>>) -> Self[src]

pub fn get_diagonal(&self) -> V5<T>[src]

get the diagonal of the matrix

pub fn get_rows(self) -> V5<V5<T>>[src]

pub fn get_cols(self) -> V5<V5<T>>[src]

pub fn get_upper_triagular(&self) -> [T; 10][src]

pub fn get_lower_triangular(&self) -> [T; 10][src]

Trait Implementations

impl<T: Num + Copy> Add<M55<T>> for M55<T>[src]

type Output = Self

The resulting type after applying the + operator.

impl<T: Clone> Clone for M55<T>[src]

impl<T: Copy> Copy for M55<T>[src]

impl<T: Debug> Debug for M55<T>[src]

impl<T> Deref for M55<T>[src]

type Target = [[T; 5]; 5]

The resulting type after dereferencing.

impl<T> DerefMut for M55<T>[src]

impl<T: Num + Display> Display for M55<T>[src]

impl<T> From<[[T; 5]; 5]> for M55<T>[src]

impl<T> Index<(usize, usize)> for M55<T>[src]

type Output = T

The returned type after indexing.

impl<T> IndexMut<(usize, usize)> for M55<T>[src]

impl<T: Float + Sum> LinearAlgebra<T> for M55<T>[src]

fn inverse(&self) -> Option<Self>[src]

Calculate the inverse of the Matrix6x6 via tha Adjoint Matrix: A^(-1) = 1/det Adj where Adj = Cofactor.Transpose() Cofactor = (-1)^(i+j) M(i, j).det()

fn qr(&self) -> Option<(Self, Self)>[src]

Calculate de QR factorization of the M55 via gram-schmidt orthogonalization process

impl<T: Num + Copy> Mul<M55<T>> for M55<T>[src]

type Output = Self

The resulting type after applying the * operator.

impl<T: Num + Copy> Mul<M55<T>> for V5<T>[src]

type Output = V5<T>

The resulting type after applying the * operator.

impl<T: Num + Copy> Mul<T> for M55<T>[src]

type Output = M55<T>

The resulting type after applying the * operator.

impl<T: Num + Copy + Sum> Mul<V5<T>> for M55<T>[src]

type Output = V5<T>

The resulting type after applying the * operator.

impl<T: Num + Copy> One for M55<T>[src]

fn one() -> M55<T>[src]

Create an identity matrix

impl<T: PartialEq> PartialEq<M55<T>> for M55<T>[src]

impl<T> StructuralPartialEq for M55<T>[src]

impl<T: Num + Copy> Sub<M55<T>> for M55<T>[src]

type Output = Self

The resulting type after applying the - operator.

impl<T: Num + Copy> Zero for M55<T>[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for M55<T> where
    T: RefUnwindSafe

impl<T> Send for M55<T> where
    T: Send

impl<T> Sync for M55<T> where
    T: Sync

impl<T> Unpin for M55<T> where
    T: Unpin

impl<T> UnwindSafe for M55<T> where
    T: UnwindSafe

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.