pub struct M55<T>(/* private fields */);
Expand description
A static Matrix of 5x5 shape
Implementations§
Source§impl<T: Num + Copy> M55<T>
impl<T: Num + Copy> M55<T>
pub fn new_from_vecs(cols: V5<V5<T>>) -> Self
Sourcepub fn get_diagonal(&self) -> V5<T>
pub fn get_diagonal(&self) -> V5<T>
get the diagonal of the matrix
pub fn get_rows(self) -> V5<V5<T>>
pub fn get_cols(self) -> V5<V5<T>>
pub fn get_upper_triagular(&self) -> [T; 10]
pub fn get_lower_triangular(&self) -> [T; 10]
Trait Implementations§
Source§impl<T: Num + Copy> AddAssign for M55<T>
impl<T: Num + Copy> AddAssign for M55<T>
Source§fn add_assign(&mut self, other: Self)
fn add_assign(&mut self, other: Self)
Performs the
+=
operation. Read moreSource§impl<T: Float + Sum> LinearAlgebra<T> for M55<T>
impl<T: Float + Sum> LinearAlgebra<T> for M55<T>
Source§fn inverse(&self) -> Option<Self>
fn inverse(&self) -> Option<Self>
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()
Source§impl<T: Num + Copy> SubAssign for M55<T>
impl<T: Num + Copy> SubAssign for M55<T>
Source§fn sub_assign(&mut self, other: Self)
fn sub_assign(&mut self, other: Self)
Performs the
-=
operation. Read moreimpl<T: Copy> Copy for M55<T>
impl<T> StructuralPartialEq for M55<T>
Auto Trait Implementations§
impl<T> Freeze for M55<T>where
T: Freeze,
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§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more