pub struct Matrix<T, const M: usize, const N: usize> { /* private fields */ }Implementations§
Source§impl<T, const M: usize, const N: usize> Matrix<T, M, N>
impl<T, const M: usize, const N: usize> Matrix<T, M, N>
pub const fn new(cols: [Vector<T, M>; N]) -> Self
pub fn gen<F>(f: F) -> Self
pub fn submatrix<const P: usize, const Q: usize>(
self,
col_offset: usize,
row_offset: usize,
) -> Matrix<T, P, Q>where
T: Clone,
pub fn transpose(self) -> Matrix<T, N, M>where
T: Clone,
pub fn map<F, U>(self, f: F) -> Matrix<U, M, N>where
F: Fn(T) -> U,
pub fn map_mut<F>(&mut self, f: F)
pub fn map_column<F>(self, f: F, col_idx: usize) -> Self
pub fn map_column_mut<F>(&mut self, f: F, col_idx: usize)
pub fn apply<F, U, V>(self, f: F, rhs: Matrix<U, M, N>) -> Matrix<V, M, N>where
F: Fn(T, U) -> V,
pub fn apply_mut<F, U>(&mut self, f: F, rhs: Matrix<U, M, N>)
pub fn iter(&self) -> <&Self as IntoIterator>::IntoIter
pub fn into_iter(self) -> <Self as IntoIterator>::IntoIter
pub fn iter_mut(&mut self) -> <&mut Self as IntoIterator>::IntoIter
pub fn row_echelon_form(self) -> Self
pub fn reduced_row_echelon_form(self) -> Self
pub fn column_echelon_form(self) -> Self
pub fn reduced_column_echelon_form(self) -> Self
pub fn sort_columns_by_leading_coefficient_index(self) -> Self
pub fn swap_columns(&mut self, col1_idx: usize, col2_idx: usize)
Trait Implementations§
Source§impl<T, const M: usize, const N: usize> AddAssign for Matrix<T, M, N>where
T: AddAssign<T>,
impl<T, const M: usize, const N: usize> AddAssign for Matrix<T, M, N>where
T: AddAssign<T>,
Source§fn add_assign(&mut self, rhs: Matrix<T, M, N>)
fn add_assign(&mut self, rhs: Matrix<T, M, N>)
Performs the
+= operation. Read moreSource§impl<T, const M: usize, const N: usize> DivAssign<T> for Matrix<T, M, N>
impl<T, const M: usize, const N: usize> DivAssign<T> for Matrix<T, M, N>
Source§fn div_assign(&mut self, rhs: T)
fn div_assign(&mut self, rhs: T)
Performs the
/= operation. Read moreSource§impl<T, const M: usize, const N: usize, const P: usize> Mul<Matrix<T, N, P>> for Matrix<T, M, N>
impl<T, const M: usize, const N: usize, const P: usize> Mul<Matrix<T, N, P>> for Matrix<T, M, N>
Source§impl<T, const M: usize, const N: usize> SubAssign for Matrix<T, M, N>where
T: SubAssign<T>,
impl<T, const M: usize, const N: usize> SubAssign for Matrix<T, M, N>where
T: SubAssign<T>,
Source§fn sub_assign(&mut self, rhs: Matrix<T, M, N>)
fn sub_assign(&mut self, rhs: Matrix<T, M, N>)
Performs the
-= operation. Read moreimpl<T: Copy, const M: usize, const N: usize> Copy for Matrix<T, M, N>
impl<T: Eq, const M: usize, const N: usize> Eq for Matrix<T, M, N>
impl<T, const M: usize, const N: usize> StructuralPartialEq for Matrix<T, M, N>
Auto Trait Implementations§
impl<T, const M: usize, const N: usize> Freeze for Matrix<T, M, N>where
T: Freeze,
impl<T, const M: usize, const N: usize> RefUnwindSafe for Matrix<T, M, N>where
T: RefUnwindSafe,
impl<T, const M: usize, const N: usize> Send for Matrix<T, M, N>where
T: Send,
impl<T, const M: usize, const N: usize> Sync for Matrix<T, M, N>where
T: Sync,
impl<T, const M: usize, const N: usize> Unpin for Matrix<T, M, N>where
T: Unpin,
impl<T, const M: usize, const N: usize> UnwindSafe for Matrix<T, M, N>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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more