Skip to content

num::kernel::spmm

Defined in header <kernel/sparse.hpp>

template <std::floating_point T, std::integral Index>
void spmm(T *Y, idx ldy, const T *val, const Index *row_ptr, const Index *col_idx,
          const T *X, idx ldx, std::type_identity_t<Index> m, idx nrhs) noexcept;

Multiply a CSR sparse matrix and a dense matrix (SpMM): \(Y \leftarrow A X\). X and Y are row-major with nrhs columns.