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 + SparseElement + 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 matrixx- The input vectorchunk_size- Number of rows to process at oncememory_tracker- Optional memory usage tracker
§Returns
The result vector y = A * x