Skip to main content

csr_to_array2

Function csr_to_array2 

Source
pub fn csr_to_array2<T: Scalar + Clone + Field>(csr: &CsrMatrix<T>) -> Array2<T>
Expand description

Converts a CSR matrix back to a dense Array2.

§Arguments

  • csr - Sparse CSR matrix

§Returns

Dense 2D array with all elements (including zeros)