pub struct StreamingMatrix { /* private fields */ }Expand description
Memory-efficient matrix representation for extremely large problems.
Implementations§
Source§impl StreamingMatrix
impl StreamingMatrix
Sourcepub fn from_triplets(
triplets: Vec<(usize, usize, Precision)>,
rows: usize,
cols: usize,
memory_limit_mb: usize,
) -> Result<Self>
pub fn from_triplets( triplets: Vec<(usize, usize, Precision)>, rows: usize, cols: usize, memory_limit_mb: usize, ) -> Result<Self>
Create a streaming matrix from triplets with memory constraints.
Sourcepub fn multiply_vector_streaming<F>(
&self,
x: &[Precision],
callback: F,
) -> Result<()>
pub fn multiply_vector_streaming<F>( &self, x: &[Precision], callback: F, ) -> Result<()>
Streaming matrix-vector multiplication.
Sourcepub fn memory_usage(&self) -> usize
pub fn memory_usage(&self) -> usize
Get memory usage statistics.
Auto Trait Implementations§
impl Freeze for StreamingMatrix
impl RefUnwindSafe for StreamingMatrix
impl Send for StreamingMatrix
impl Sync for StreamingMatrix
impl Unpin for StreamingMatrix
impl UnwindSafe for StreamingMatrix
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