public static void multiplyInPlace(double[] a, double b) {
    for (int i = 0; i < a.length; i++) {
      a[i] = a[i] * b;
    }
  }
public static void multiplyInPlace ( double [ ] a , double b ) { for ( int i = 0 ; i < a . length ; i ++ ) { a [ i ] = a [ i ] * b ; } }
Scales the values in this array by b. Does it in place.