sparse_from_dense

Function sparse_from_dense 

Source
pub fn sparse_from_dense<T>(dense: &Array<T>, format: SparseFormat) -> Array<T>
Expand description

Convert dense array to sparse array

§Parameters

  • dense is the dense format array
  • format is the target sparse format

§Return Values

Sparse Array