Skip to main content

sparse_extract_diagonal

Function sparse_extract_diagonal 

Source
pub fn sparse_extract_diagonal<F>(a: &CsrMatrix<F>) -> Vec<F>
where F: Float + NumAssign + Sum + SparseElement + Debug + 'static,
Expand description

Extract the diagonal of a sparse CSR matrix as a dense vector.