mtl5.sparse.csr_matrix#

mtl5.sparse.csr_matrix(data: ndarray, indices: ndarray, indptr: ndarray, shape: tuple[int, int])#

Construct an MTL5 CSR sparse matrix directly from the three CSR arrays.

The dtype of data selects which SparseMatrix_* class to instantiate. Indices/indptr are converted to int64 if not already.