advanced_sparse_matvec_csr

Function advanced_sparse_matvec_csr 

Source
pub fn advanced_sparse_matvec_csr<T>(
    y: &mut [T],
    rows: usize,
    indptr: &[usize],
    indices: &[usize],
    data: &[T],
    x: &[T],
)
Expand description

Advanced-optimized parallel sparse matrix-vector multiplication with adaptive strategies

This is an Advanced mode enhancement that automatically selects the best computational strategy based on matrix characteristics and hardware capabilities.

§Arguments

  • y - Output vector (will be overwritten)
  • rows - Number of rows in the matrix
  • indptr - Row pointer array (length = rows + 1)
  • indices - Column indices array
  • data - Non-zero values array
  • x - Input vector

§Features

  • Adaptive workload balancing based on row sparsity
  • Cache-aware memory access patterns
  • NUMA-aware thread scheduling
  • Vectorized inner loops with prefetching