pub struct SquareMatrix<V> { /* private fields */ }Implementations§
Trait Implementations§
Source§impl<V> BasicOperationsTrait for SquareMatrix<V>
impl<V> BasicOperationsTrait for SquareMatrix<V>
type Value = V
fn get_shape(&self) -> &Shape
fn get_mut_shape(&mut self) -> &mut Shape
fn get_elements(&self) -> &HashMap<Position, Self::Value>
fn get_mut_elements(&mut self) -> &mut HashMap<Position, Self::Value>
fn get_element_value(&self, position: &Position) -> Result<&Self::Value, String>
fn get_mut_element_value( &mut self, position: &Position, ) -> Result<&mut Self::Value, String>
fn shape_conformity_check<M>(
&self,
other: &M,
operation: Operation,
) -> Result<(), String>where
M: BasicOperationsTrait,
fn add<M>(&self, other: &M) -> Result<Self, String>
fn subtract<M>(&self, other: &M) -> Result<Self, String>
fn multiply_by_scalar(&self, scalar: Self::Value) -> Self
fn multiply<M>(&self, other: &M) -> Result<Matrix<Self::Value>, String>
fn transpose(&self) -> Self
fn remove_row(&self, row: usize) -> Result<Matrix<Self::Value>, String>
fn remove_column(&self, column: usize) -> Result<Matrix<Self::Value>, String>
fn show<F>(&self, f: F)
Source§impl<V: Clone> Clone for SquareMatrix<V>
impl<V: Clone> Clone for SquareMatrix<V>
Source§fn clone(&self) -> SquareMatrix<V>
fn clone(&self) -> SquareMatrix<V>
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<V: Debug> Debug for SquareMatrix<V>
impl<V: Debug> Debug for SquareMatrix<V>
Source§impl<V: PartialEq> PartialEq for SquareMatrix<V>
impl<V: PartialEq> PartialEq for SquareMatrix<V>
Source§impl<V> SquareMatrixTrait for SquareMatrix<V>
impl<V> SquareMatrixTrait for SquareMatrix<V>
fn determinant(
&self,
rel_tol: <Self as BasicOperationsTrait>::Value,
) -> <Self as BasicOperationsTrait>::Valuewhere
Self: Clone,
<Self as BasicOperationsTrait>::Value: FloatTrait<Output = <Self as BasicOperationsTrait>::Value>,
fn gauss_gep<VT1, VT2>(
&self,
b: &VT1,
x: &mut VT2,
rel_tol: <Self as BasicOperationsTrait>::Value,
) -> Result<(), String>where
VT1: VectorTrait + BasicOperationsTrait<Value = <Self as BasicOperationsTrait>::Value> + Clone,
VT2: VectorTrait + BasicOperationsTrait<Value = <Self as BasicOperationsTrait>::Value> + Clone,
Self: Clone,
<Self as BasicOperationsTrait>::Value: FloatTrait<Output = <Self as BasicOperationsTrait>::Value>,
fn inverse<VT>(
&self,
x: &mut VT,
rel_tol: <Self as BasicOperationsTrait>::Value,
) -> Result<Self, String>where
Self: Clone,
<Self as BasicOperationsTrait>::Value: FloatTrait<Output = <Self as BasicOperationsTrait>::Value>,
VT: VectorTrait + BasicOperationsTrait<Value = <Self as BasicOperationsTrait>::Value> + Clone,
fn lup_decomp<VT1, VT2>(
&self,
b: &VT1,
x: &mut VT2,
rel_tol: <Self as BasicOperationsTrait>::Value,
) -> Result<(), String>where
VT1: VectorTrait + BasicOperationsTrait<Value = <Self as BasicOperationsTrait>::Value> + Clone,
VT2: VectorTrait + BasicOperationsTrait<Value = <Self as BasicOperationsTrait>::Value> + Clone,
Self: Clone,
<Self as BasicOperationsTrait>::Value: FloatTrait<Output = <Self as BasicOperationsTrait>::Value>,
Source§impl<V> TryIntoSymmetricCompactedMatrixTrait for SquareMatrix<V>
impl<V> TryIntoSymmetricCompactedMatrixTrait for SquareMatrix<V>
fn try_into_symmetric_compacted_matrix(
&self,
rel_tol: <Self as BasicOperationsTrait>::Value,
) -> Result<(Vec<<Self as BasicOperationsTrait>::Value>, Vec<i64>), String>where
<Self as BasicOperationsTrait>::Value: FloatTrait<Output = <Self as BasicOperationsTrait>::Value>,
fn forced_into_symmetric_compacted_matrix(
&self,
rel_tol: <Self as BasicOperationsTrait>::Value,
warnings: &mut Vec<Vec<(Position, <Self as BasicOperationsTrait>::Value)>>,
) -> (Vec<<Self as BasicOperationsTrait>::Value>, Vec<i64>)where
<Self as BasicOperationsTrait>::Value: FloatTrait<Output = <Self as BasicOperationsTrait>::Value>,
impl<V> StructuralPartialEq for SquareMatrix<V>
Auto Trait Implementations§
impl<V> Freeze for SquareMatrix<V>
impl<V> RefUnwindSafe for SquareMatrix<V>where
V: RefUnwindSafe,
impl<V> Send for SquareMatrix<V>where
V: Send,
impl<V> Sync for SquareMatrix<V>where
V: Sync,
impl<V> Unpin for SquareMatrix<V>where
V: Unpin,
impl<V> UnwindSafe for SquareMatrix<V>where
V: UnwindSafe,
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)