Function sparsity_pattern
Source pub fn sparsity_pattern<T>(matrix: &CsrMatrix<T>) -> Vec<Vec<usize>>
Expand description
Calculate the sparsity pattern of a matrix
§Arguments
§Returns
- Vector of vectors representing the sparsity pattern (1 for non-zero, 0 for zero)