class DoubleArrayMath {

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

  private  DoubleArrayMath();

}