extendr_api::prelude::sparse::linalg::matmul

Function sparse_sparse_matmul

pub fn sparse_sparse_matmul<I, E, LhsE, RhsE>(
    lhs: SparseColMatRef<'_, I, LhsE>,
    rhs: SparseColMatRef<'_, I, RhsE>,
    k: E,
    parallelism: Parallelism<'_>,
) -> Result<SparseColMat<I, E>, FaerError>
where I: Index, E: ComplexField, LhsE: Conjugate<Canonical = E>, RhsE: Conjugate<Canonical = E>,
Expand description

Multiplies a sparse matrix lhs by a sparse matrix rhs, multiplied by k, and returns the result.

ยงNote

Allows unsorted matrices, and produces a sorted output.