pub struct MatrixF32 {
pub content: Vec<Vec<f32>>,
/* private fields */
}
Fields§
§content: Vec<Vec<f32>>
Implementations§
Trait Implementations§
Source§impl CheckedAdd for MatrixF32
impl CheckedAdd for MatrixF32
Source§impl CheckedMul for MatrixF32
impl CheckedMul for MatrixF32
Source§impl CheckedSub for MatrixF32
impl CheckedSub for MatrixF32
Source§impl Invertible for MatrixF32
impl Invertible for MatrixF32
fn inverse_gauss_jordan(&self) -> Result<Self>where
Self: Sized,
fn inverse_montante(&self) -> Result<Self>where
Self: Sized,
fn inverse_adjoint(&self) -> Result<Self>where
Self: Sized,
Source§impl Matrix for MatrixF32
impl Matrix for MatrixF32
type T = f32
Source§fn is_square(&self) -> bool
fn is_square(&self) -> bool
Will return
true
if the matrix is squared, i.e., if rows == columns
Source§fn is_symmetric(&self) -> bool
fn is_symmetric(&self) -> bool
Will return
true
if the matrix is symmetric, i.e., if A == A^T
Source§fn get(&self, row: usize, column: usize) -> Result<&Self::T>
fn get(&self, row: usize, column: usize) -> Result<&Self::T>
Get a reference of an element of the matrix, or error if you provide wrong indexes
Source§fn get_mut(&mut self, row: usize, column: usize) -> Result<&mut Self::T>
fn get_mut(&mut self, row: usize, column: usize) -> Result<&mut Self::T>
Get a mutable reference of an element of the matrix, or error if you provide wrong indexes
Source§fn set(&mut self, row: usize, column: usize, value: Self::T) -> Result<()>
fn set(&mut self, row: usize, column: usize, value: Self::T) -> Result<()>
Set an element of the matrix, or error if you provide wrong indexes
Source§fn swap_rows(&mut self, row1: usize, row2: usize) -> Result<()>
fn swap_rows(&mut self, row1: usize, row2: usize) -> Result<()>
Swap two rows of the matrix, or error if you provide wrong indexes
Source§fn transpose(&self) -> Self
fn transpose(&self) -> Self
Return a new matrix being the transposed of the current one. It does not eliminate the current one
Source§fn gaussian_triangulation(&self) -> Result<Self>
fn gaussian_triangulation(&self) -> Result<Self>
Return a new matrix being the reduced gaussian inferior triangular of the current one. It does not eliminate the current one
Source§fn lu_decomposition(&self) -> Result<(Self, Self)>
fn lu_decomposition(&self) -> Result<(Self, Self)>
Returns a tuple containing the matrices
L
and U
of the LU decomposition, in order. It does not eliminate the current oneSource§fn determinant_using_gauss(&self) -> Option<Self::T>
fn determinant_using_gauss(&self) -> Option<Self::T>
Return the determinant or a
None
if the matrix is not squaredfn determinant_using_lu(&self) -> Option<Self::T>
Source§fn cholesky_decomposition(&self) -> Result<Self>
fn cholesky_decomposition(&self) -> Result<Self>
Returns a matrix resulting from the Cholesky decomposition. It does not eliminate the current one
Source§impl Serializable for MatrixF32
impl Serializable for MatrixF32
impl ArithmeticallyOperable<Result<MatrixF32, MathError>> for MatrixF32
Auto Trait Implementations§
impl Freeze for MatrixF32
impl RefUnwindSafe for MatrixF32
impl Send for MatrixF32
impl Sync for MatrixF32
impl Unpin for MatrixF32
impl UnwindSafe for MatrixF32
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