pub fn sparse_trace<F>(a: &CsrMatrix<F>) -> Fwhere
F: Float + SparseElement,Expand description
Compute the trace of a CSR matrix (sum of diagonal elements).
pub fn sparse_trace<F>(a: &CsrMatrix<F>) -> Fwhere
F: Float + SparseElement,Compute the trace of a CSR matrix (sum of diagonal elements).