pub struct SparseSchubertMatrix { /* private fields */ }Expand description
Memory-efficient sparse matrix for large Schubert calculations
Implementations§
Source§impl SparseSchubertMatrix
impl SparseSchubertMatrix
Sourcepub fn set(&mut self, row: usize, col: usize, value: Rational64)
pub fn set(&mut self, row: usize, col: usize, value: Rational64)
Set matrix entry
Sourcepub fn get(&self, row: usize, col: usize) -> Rational64
pub fn get(&self, row: usize, col: usize) -> Rational64
Get matrix entry
Sourcepub fn multiply_vector(
&self,
vector: &[Rational64],
) -> EnumerativeResult<Vec<Rational64>>
pub fn multiply_vector( &self, vector: &[Rational64], ) -> EnumerativeResult<Vec<Rational64>>
Sparse matrix-vector multiplication
Sourcepub fn memory_usage(&self) -> usize
pub fn memory_usage(&self) -> usize
Get memory usage in bytes
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SparseSchubertMatrix
impl RefUnwindSafe for SparseSchubertMatrix
impl Send for SparseSchubertMatrix
impl Sync for SparseSchubertMatrix
impl Unpin for SparseSchubertMatrix
impl UnwindSafe for SparseSchubertMatrix
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