pub struct M22<T>(/* private fields */);
Expand description
A static Matrix of 2x2 shape
Implementations§
Source§impl<T: Num + Copy> M22<T>
impl<T: Num + Copy> M22<T>
Sourcepub fn new_from_vecs(cols: V2<V2<T>>) -> Self
pub fn new_from_vecs(cols: V2<V2<T>>) -> Self
construct the matrix from columns-vectors
Sourcepub fn get_diagonal(&self) -> V2<T>
pub fn get_diagonal(&self) -> V2<T>
get the diagonal of the matrix
Trait Implementations§
Source§impl<T: Num + Copy> AddAssign for M22<T>
impl<T: Num + Copy> AddAssign for M22<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 M22<T>
impl<T: Float + Sum> LinearAlgebra<T> for M22<T>
Source§impl<T: Num + Copy> SubAssign for M22<T>
impl<T: Num + Copy> SubAssign for M22<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 M22<T>
impl<T> StructuralPartialEq for M22<T>
Auto Trait Implementations§
impl<T> Freeze for M22<T>where
T: Freeze,
impl<T> RefUnwindSafe for M22<T>where
T: RefUnwindSafe,
impl<T> Send for M22<T>where
T: Send,
impl<T> Sync for M22<T>where
T: Sync,
impl<T> Unpin for M22<T>where
T: Unpin,
impl<T> UnwindSafe for M22<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