Skip to content

csr_from_scipy

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

def csr_from_scipy[dtype: DType = DType.float64](
sp_arr: PythonObject,
) -> CSRMatrix[dtype]
from strata.core import csr_from_scipy

Converts a scipy.sparse.csr_matrix to a Strata CSRMatrix[dtype].