pub(crate) fn vec_mul(a: &[f64], b: &[f64]) -> Vec<f64> {
  assert_eq!(a.len(), b.len());
  let mut target = vec![0.0; a.len()];
  for i in 0..a.len() {
    target[i] = a[i] * b[i];
  }
  target
}
/// Multiplies each element in `a` by corresponding element in `b`.
Multiplies each element in `a` by corresponding element in `b`.
Multiplies each element in ` a ` by corresponding element in ` b ` .
pub(crate) fn vec_mul(a: &[f64], b: &[f64]) -> Vec<f64> {
  assert_eq!(a.len(), b.len());
  let mut target = vec![0.0; a.len()];
  for i in 0..a.len() {
    target[i] = a[i] * b[i];
  }
  target
}
pub ( crate ) fn vec_mul ( a : & [ f64 ] , b : & [ f64 ] ) -> Vec < f64 > { assert_eq ! ( a len ( ) b len ( ) ) ; let mut target = vec ! [ 0.0 a len ( ) ] ; for i in 0 .. a . len ( ) { target [ i ] = a [ i ] * b [ i ] ; } target }
Multiplies each element in `a` by corresponding element in `b`.
Multiplies each element in ` a ` by corresponding element in ` b ` .
a
&[f64]
b
&[f64]
a
&[f64]
b
&[f64]