pub fn element_wise_multiply(&mut self, value: &F)
    where
        for<'r> F: NotZero + MulAssign<&'r F>,
    {
        debug_assert!(value.borrow().is_not_zero());

        for (_, v) in &mut self.data {
            *v *= value;
        }
        self.data.retain(|(_, v)| v.is_not_zero());
    }
/// Multiply each element of the vector by a value.
Multiply each element of the vector by a value.
Multiply each element of the vector by a value .
pub fn element_wise_multiply(&mut self, value: &F)
    where
        for<'r> F: NotZero + MulAssign<&'r F>,
    {
        debug_assert!(value.borrow().is_not_zero());
        for (_, v) in &mut self.data {
            *v *= value;
        }
        self.data.retain(|(_, v)| v.is_not_zero());
    }
pub fn element_wise_multiply ( & mut self , value : & F ) where for < ' r > F : NotZero + MulAssign < & ' r F > , { debug_assert ! ( value borrow ( ) is_not_zero ( ) ) ; for ( _ , v ) in & mut self . data { * v *= value ; } self . data . retain ( | ( _ , v ) | v . is_not_zero ( ) ) ; }
Multiply each element of the vector by a value.
Multiply each element of the vector by a value .
&mut self
value
&F
&mut self
value
&F