streaming_sparse_matvec

Function streaming_sparse_matvec 

Source
pub fn streaming_sparse_matvec<T, S>(
    matrix: &S,
    x: &ArrayView1<'_, T>,
    chunk_size: usize,
    memory_tracker: Option<&mut MemoryTracker>,
) -> SparseResult<Array1<T>>
where T: Float + Debug + Copy + 'static + SimdUnifiedOps + Send + Sync, S: SparseArray<T>,
Expand description

Memory-efficient sparse matrix-vector multiplication using streaming

This implementation processes the matrix in chunks to minimize memory usage while maintaining computational efficiency.

§Arguments

  • matrix - The sparse matrix
  • x - The input vector
  • chunk_size - Number of rows to process at once
  • memory_tracker - Optional memory usage tracker

§Returns

The result vector y = A * x