Skip to main content

require_csr

Function require_csr 

Source
pub fn require_csr<T, U>(
    mat: &CompressedSparseData2<T, U>,
) -> Result<(), SparseErrors>
where T: Clone, U: Clone,
Expand description

Fail unless the matrix is stored as CSR.

§Params

  • mat - The matrix to check

§Returns

Ok(()), or SparseErrors::SparseMatrixMustBeCsr.