pub fn map_inplace<F>(&mut self, mut f: F)
    where F: FnMut(&N) -> N
    {
        for val in &mut self.data[..] {
            *val = f(val);
        }
    }
/// Apply a function to each non-zero element, mutating it
Apply a function to each non-zero element, mutating it
Apply a function to each non - zero element mutating it
pub fn map_inplace<F>(&mut self, mut f: F)
    where F: FnMut(&N) -> N
    {
        for val in &mut self.data[..] {
            *val = f(val);
        }
    }
pub fn map_inplace < F > ( & mut self , mut f : F ) where F : FnMut ( & N ) -> N { for val in & mut self . data [ .. ] { * val = f ( val ) ; } }
Apply a function to each non-zero element, mutating it
Apply a function to each non - zero element mutating it
&mut self
f
F
&mut self
f
F