Expand description
GPU sparse linear system solver (CPU mock implementation).
Provides CSR sparse matrix storage, SpMV, dot product, AXPY, conjugate gradient (CG), and preconditioned CG solvers that mirror GPU dispatch semantics while executing on the CPU.
Structs§
- GpuSparse
Solver Stats - Performance statistics for a GPU sparse solve.
- Sparse
Matrix Gpu - Compressed Sparse Row (CSR) matrix stored in GPU-friendly layout.
Functions§
- gpu_
axpy - In-place AXPY: y ← a·x + y.
- gpu_
cg_ solver - Conjugate gradient solver for symmetric positive-definite systems A·x = b.
- gpu_dot
- Dense dot product: ∑ aᵢ bᵢ.
- gpu_
jacobi_ preconditioner - Build the Jacobi (diagonal) preconditioner for matrix
mat. - gpu_
pcg_ solver - Preconditioned conjugate gradient solver.
- gpu_
spmv - Sparse matrix–vector product: y = A · x.
- sparse_
diagonal_ matrix - Build a diagonal matrix from a dense vector.
- sparse_
identity - Build an n×n identity matrix in CSR format.