pub struct M66<T>(/* private fields */);
Expand description
A static Matrix of 6x6 shape
Implementations§
Source§impl<T: Num + Copy> M66<T>
impl<T: Num + Copy> M66<T>
Sourcepub fn get_diagonal(&self) -> V6<T>
pub fn get_diagonal(&self) -> V6<T>
get the diagonal of the matrix
pub fn new_from_vecs(cols: V6<V6<T>>) -> Self
pub fn get_rows(self) -> V6<V6<T>>
pub fn get_cols(self) -> V6<V6<T>>
pub fn get_upper_triangular(&self) -> [T; 15]
pub fn get_lower_triangular(&self) -> [T; 15]
Sourcepub fn copy_elements_from(&mut self, r: &M33<T>, quadrant: usize)
pub fn copy_elements_from(&mut self, r: &M33<T>, quadrant: usize)
Copy elements from a M33
Function arguments:
r
: M33
quadrant
: number to choose the cuadrant where do the copy of the elements
Trait Implementations§
Source§impl<T: Num + Copy> AddAssign for M66<T>
impl<T: Num + Copy> AddAssign for M66<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 M66<T>
impl<T: Float + Sum> LinearAlgebra<T> for M66<T>
Source§fn inverse(&self) -> Option<Self>
fn inverse(&self) -> Option<Self>
Calculate the inverse of the M66 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 M66<T>
impl<T: Num + Copy> SubAssign for M66<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 M66<T>
impl<T> StructuralPartialEq for M66<T>
Auto Trait Implementations§
impl<T> Freeze for M66<T>where
T: Freeze,
impl<T> RefUnwindSafe for M66<T>where
T: RefUnwindSafe,
impl<T> Send for M66<T>where
T: Send,
impl<T> Sync for M66<T>where
T: Sync,
impl<T> Unpin for M66<T>where
T: Unpin,
impl<T> UnwindSafe for M66<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