Function sprs::csr_from_dense [−][src]
pub fn csr_from_dense<N>(m: ArrayView<N, Ix2>, epsilon: N) -> CsMat<N> where
N: Num + Clone + PartialOrd + Signed,
Create a CSR matrix from a dense matrix, ignoring elements
lower than epsilon
.
If epsilon is negative, it will be clamped to zero.