pub fn map<F>(&self, f: F) -> CsVecI<N, I>
    where F: FnMut(&N) -> N,
          N: Clone
    {
        let mut res = self.to_owned();
        res.map_inplace(f);
        res
    }
/// Apply a function to each non-zero element, yielding a new matrix
/// with the same sparsity structure.
Apply a function to each non-zero element, yielding a new matrix
with the same sparsity structure.
Apply a function to each non - zero element yielding a new matrix with the same sparsity structure .
pub fn map<F>(&self, f: F) -> CsVecI<N, I>
    where F: FnMut(&N) -> N,
          N: Clone
    {
        let mut res = self.to_owned();
        res.map_inplace(f);
        res
    }
pub fn map < F > ( & self , f : F ) -> CsVecI < N , I > where F : FnMut ( & N ) -> N , N : Clone { let mut res = self . to_owned ( ) ; res . map_inplace ( f ) ; res }
Apply a function to each non-zero element, yielding a new matrix
with the same sparsity structure.
Apply a function to each non - zero element yielding a new matrix with the same sparsity structure .
&self
f
F
&self
f
F