class DoubleArrayMath {

  public static void mutate(double[] array, DoubleUnaryOperator operator) {
    for (int i = 0; i < array.length; i++) {
      array[i] = operator.applyAsDouble(array[i]);
    }
  }

  private  DoubleArrayMath();

}