class DoubleArrayMath {

  public static double sum(double[] array) {
    double total = 0d;
    for (int i = 0; i < array.length; i++) {
      total += array[i];
    }
    return total;
  }

  private  DoubleArrayMath();

}