pub fn addto<S, E>(&self, weights: &mut ArrayBase<S, E>)
    where
        S: DataMut<Elem = f64>,
        E: Dimension,
        usize: NdIndex<E>,
    {
        apply_to_features!(self => ref da, {
            weights.add_assign(da)
        }; ref sa, {
            for (&idx, act) in sa.iter() { weights[idx] += act; }
        });
    }
/// Perform an elementwise add of activations to a `weights` vector.
Perform an elementwise add of activations to a `weights` vector.
Perform an elementwise add of activations to a ` weights ` vector .
pub fn addto<S, E>(&self, weights: &mut ArrayBase<S, E>)
    where
        S: DataMut<Elem = f64>,
        E: Dimension,
        usize: NdIndex<E>,
    {
        apply_to_features!(self => ref da, {
            weights.add_assign(da)
        }; ref sa, {
            for (&idx, act) in sa.iter() { weights[idx] += act; }
        });
    }
pub fn addto < S , E > ( & self , weights : & mut ArrayBase < S , E > ) where S : DataMut < Elem = f64 > , E : Dimension , usize : NdIndex < E > , { apply_to_features ! ( self ref da { weights add_assign ( da ) } ref sa { for ( idx act ) in sa iter ( ) { weights [ idx ] act } } ) ; }
Perform an elementwise add of activations to a `weights` vector.
Perform an elementwise add of activations to a ` weights ` vector .
&self
weights
&mut ArrayBase<S, E>
&self
weights
&mut ArrayBase<S, E>