[−][src]Struct static_math::matrix6x6::M66
A static Matrix of 6x6 shape
Implementations
impl<T> M66<T>
[src]
pub fn new(data_input: [[T; 6]; 6]) -> Self
[src]
pub fn rows(&self) -> usize
[src]
pub fn cols(&self) -> usize
[src]
impl<T: Num + Copy + Sum> M66<T>
[src]
pub fn identity() -> M66<T>
[src]
contruct identity matrix
pub fn zeros() -> M66<T>
[src]
construct the matrix with all zeros
pub fn as_vec(&self) -> [T; 36]
[src]
transform the matrix to a flatten vector
pub fn get_diagonal(&self) -> V6<T>
[src]
get the diagonal of the matrix
pub fn new_from_vecs(cols: V6<V6<T>>) -> Self
[src]
pub fn get_rows(self) -> V6<V6<T>>
[src]
pub fn get_cols(self) -> V6<V6<T>>
[src]
pub fn get_upper_triangular(&self) -> [T; 15]
[src]
pub fn get_lower_triangular(&self) -> [T; 15]
[src]
Trait Implementations
impl<T: Num + Copy> Add<M66<T>> for M66<T>
[src]
type Output = Self
The resulting type after applying the +
operator.
fn add(self, rhs: Self) -> Self
[src]
impl<T: Clone> Clone for M66<T>
[src]
impl<T: Copy> Copy for M66<T>
[src]
impl<T: Debug> Debug for M66<T>
[src]
impl<T> Deref for M66<T>
[src]
type Target = [[T; 6]; 6]
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
impl<T> DerefMut for M66<T>
[src]
impl<T: Num + Display> Display for M66<T>
[src]
impl<T> From<[[T; 6]; 6]> for M66<T>
[src]
impl<T> Index<(usize, usize)> for M66<T>
[src]
impl<T> IndexMut<(usize, usize)> for M66<T>
[src]
impl<T: Float + Sum> LinearAlgebra<T> for M66<T>
[src]
fn rows(&self) -> usize
[src]
fn cols(&self) -> usize
[src]
fn transpose(&self) -> Self
[src]
fn trace(&self) -> T
[src]
fn norm2(&self) -> T
[src]
fn det(&self) -> T
[src]
fn inverse(&self) -> Option<Self>
[src]
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()
fn qr(&self) -> Option<(Self, Self)>
[src]
Calculate de QR factorization of the M66 via gram-schmidt orthogonalization process
fn shape(&self) -> (usize, usize)
[src]
impl<T: Num + Copy> Mul<M66<T>> for M66<T>
[src]
type Output = Self
The resulting type after applying the *
operator.
fn mul(self, rhs: Self) -> Self
[src]
impl<T: Num + Copy> Mul<M66<T>> for V6<T>
[src]
type Output = V6<T>
The resulting type after applying the *
operator.
fn mul(self, rhs: M66<T>) -> V6<T>
[src]
impl<T: Num + Copy> Mul<T> for M66<T>
[src]
type Output = M66<T>
The resulting type after applying the *
operator.
fn mul(self, rhs: T) -> M66<T>
[src]
impl<T: Num + Copy + Sum> Mul<V6<T>> for M66<T>
[src]
type Output = V6<T>
The resulting type after applying the *
operator.
fn mul(self, rhs: V6<T>) -> V6<T>
[src]
impl<T: Num + Copy> One for M66<T>
[src]
fn one() -> M66<T>
[src]
Create an identity matrix
fn set_one(&mut self)
[src]
fn is_one(&self) -> bool where
Self: PartialEq<Self>,
[src]
Self: PartialEq<Self>,
impl<T: PartialEq> PartialEq<M66<T>> for M66<T>
[src]
impl<T> StructuralPartialEq for M66<T>
[src]
impl<T: Num + Copy> Sub<M66<T>> for M66<T>
[src]
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, rhs: Self) -> Self
[src]
impl<T: Num + Copy> Zero for M66<T>
[src]
Auto Trait Implementations
impl<T> RefUnwindSafe for M66<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for M66<T> where
T: Send,
T: Send,
impl<T> Sync for M66<T> where
T: Sync,
T: Sync,
impl<T> Unpin for M66<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for M66<T> where
T: UnwindSafe,
T: UnwindSafe,
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>,