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;
Multiply a CSR sparse matrix and a vector (SpMV): \(y \leftarrow A x\).