check_sparse
Module: strata.utils • Kind: function
Source: strata/utils/validation.mojo
def check_sparse[dtype: DType]( rows: Int, cols: Int, data: List[Scalar[dtype]], indices: List[Int], indptr: List[Int], is_csr: Bool = True, allow_empty: Bool = True, caller: String = "SparseMatrix.__init__",)from strata.utils import check_sparseValidates CSR/CSC sparse matrix format invariants.