Skip to content

spmv

Module: strata.core • Kind: function
Source: strata/core/sparse_ops.mojo

def spmv[dtype: DType = DType.float64](
A: CSRMatrix[dtype],
x: List[Scalar[dtype]],
bias: Scalar[dtype] = 0,
) -> List[Scalar[dtype]]
from strata.core import spmv

Sparse matrix-vector multiplication: y = A @ x + bias.