cdm/src/main/java/ucar/ma2/MAMath.java
public static void setDouble(Array result, double val) {
    IndexIterator iter = result.getIndexIterator();
    while (iter.hasNext()) {
      iter.setDoubleNext(val);
    }
  }
public static void setDouble(Array result, double val) {
    IndexIterator iter = result.getIndexIterator();
    while (iter.hasNext()) {
      iter.setDoubleNext(val);
    }
  }
public static void setDouble ( Array result , double val ) { IndexIterator iter = result . getIndexIterator ( ) ; while ( iter . hasNext ( ) ) { iter . setDoubleNext ( val ) ; } }
Set all the elements of this array to the given double value.
The value is converted to the element type of the array, if needed.

@param result change this Array
@param val set all elements to this value
Set all the elements of this array to the given double value . The value is converted to the element type of the array if needed .