Skip to main content

Module spmv

Module spmv 

Source
Expand description

Sparse Matrix-Vector Multiplication (SpMV).

Computes y = A * x where A is a sparse matrix in CSR format. This is a fundamental operation for iterative graph algorithms like PageRank.

Structs§

SpmvConfig
SpMV configuration.

Functions§

dot
Compute dot product of two vectors.
norm2
Compute L2 norm of a vector.
normalize
Normalize vector in-place.
power_iteration
Power iteration for dominant eigenvector.
spmv
Sequential SpMV: y = A * x.
spmv_axpby
SpMV with y = alpha * A * x + beta * y (BLAS-style).
spmv_parallel
Parallel SpMV using row-based parallelism.
spmv_with_config
SpMV with configuration.