Skip to main content

sparsify

Function sparsify 

Source
pub fn sparsify(y: &Array, span: Span) -> Result<Array>
Expand description

$. y: the dense array y in sparse form, every axis sparse and zero the sparse element. A sparse argument comes back unchanged, and a scalar stays dense — there is no axis to store it along.