num::kernel::spmv¶
Defined in header <kernel/sparse.hpp>
template <std::floating_point T, std::integral Index>
void spmv(T *y, const T *val, const Index *row_ptr, const Index *col_idx, const T *x,
std::type_identity_t<Index> m) noexcept;
Compressed Sparse Row (CSR) matrix-vector multiplication \(\mathbf{y} \leftarrow A \mathbf{x}\).