pub fn sparse_extract_diagonal<F>(a: &CsrMatrix<F>) -> Vec<F>where F: Float + NumAssign + Sum + SparseElement + Debug + 'static,
Extract the diagonal of a sparse CSR matrix as a dense vector.