### Question:
MAMath { public static double sumDouble(Array a) { double sum = 0; IndexIterator iterA = a.getIndexIterator(); while (iterA.hasNext()) { sum += iterA.getDoubleNext(); } return sum; }  static Array add(Array a, Array b); static void addDouble(Array result, Array a, Array b); static boolean conformable(Array a, Array b); static boolean conformable(int[] shapeA, int[] shapeB); static Array convert(Array org, DataType wantType); static void copy(DataType dataType, IndexIterator from, IndexIterator to); static void copy(Array result, Array a); static void copyDouble(Array result, Array a); static void copyFloat(Array result, Array a); static void copyLong(Array result, Array a); static void copyInt(Array result, Array a); static void copyShort(Array result, Array a); static void copyChar(Array result, Array a); static void copyByte(Array result, Array a); static void copyBoolean(Array result, Array a); static void copyObject(Array result, Array a); static int reducedRank(int[] shape); static double getMinimum(Array a); static double getMaximum(Array a); static MAMath.MinMax getMinMax(Array a); static MAMath.MinMax getMinMaxSkipMissingData(Array a, IsMissingEvaluator eval); static double getMinimumSkipMissingData(Array a, double missingValue); static double getMaximumSkipMissingData(Array a, double missingValue); static MAMath.MinMax getMinMaxSkipMissingData(Array a, double missingValue); static void setDouble(Array result, double val); static double sumDouble(Array a); static double sumDoubleSkipMissingData(Array a, double missingValue); static MAMath.ScaleOffset calcScaleOffsetSkipMissingData(Array a, double missingValue, int nbits); static Array convert2packed(Array unpacked, double missingValue, int nbits, DataType packedType); static Array convert2Unpacked(Array packed, ScaleOffset scaleOffset); static boolean nearlyEquals(Array data1, Array data2); static boolean equals(Array array1, Array array2); static int hashCode(Array array);  }### Answer:
@Test public void testSectionIterator() throws InvalidRangeException, IOException { Array data = A; Section section = new Section("1,:,:"); Array datasection = data.sectionNoReduce(section.getRanges()); double sum = MAMath.sumDouble(datasection); assert sum == 663.0; }