cdm/src/main/java/ucar/ma2/ArrayFloat.java
static ArrayFloat factory( Index index, float [] storage) {
      if (index instanceof Index0D) {
          return new ArrayFloat.D0(index, storage);
      } else if (index instanceof Index1D) {
          return new ArrayFloat.D1(index, storage);
      } else if (index instanceof Index2D) {
          return new ArrayFloat.D2(index, storage);
      } else if (index instanceof Index3D) {
          return new ArrayFloat.D3(index, storage);
      } else if (index instanceof Index4D) {
          return new ArrayFloat.D4(index, storage);
      } else if (index instanceof Index5D) {
          return new ArrayFloat.D5(index, storage);
      } else if (index instanceof Index6D) {
          return new ArrayFloat.D6(index, storage);
      } else if (index instanceof Index7D) {
          return new ArrayFloat.D7(index, storage);
      } else {
          return new ArrayFloat(index, storage);
      }
  }
static ArrayFloat factory( Index index, float [] storage) {
      if (index instanceof Index0D) {
          return new ArrayFloat.D0(index, storage);
      } else if (index instanceof Index1D) {
          return new ArrayFloat.D1(index, storage);
      } else if (index instanceof Index2D) {
          return new ArrayFloat.D2(index, storage);
      } else if (index instanceof Index3D) {
          return new ArrayFloat.D3(index, storage);
      } else if (index instanceof Index4D) {
          return new ArrayFloat.D4(index, storage);
      } else if (index instanceof Index5D) {
          return new ArrayFloat.D5(index, storage);
      } else if (index instanceof Index6D) {
          return new ArrayFloat.D6(index, storage);
      } else if (index instanceof Index7D) {
          return new ArrayFloat.D7(index, storage);
      } else {
          return new ArrayFloat(index, storage);
      }
  }
static ArrayFloat factory ( Index index , float [ ] storage ) { if ( index instanceof Index0D ) { return new ArrayFloat . D0 ( index , storage ) ; } else if ( index instanceof Index1D ) { return new ArrayFloat . D1 ( index , storage ) ; } else if ( index instanceof Index2D ) { return new ArrayFloat . D2 ( index , storage ) ; } else if ( index instanceof Index3D ) { return new ArrayFloat . D3 ( index , storage ) ; } else if ( index instanceof Index4D ) { return new ArrayFloat . D4 ( index , storage ) ; } else if ( index instanceof Index5D ) { return new ArrayFloat . D5 ( index , storage ) ; } else if ( index instanceof Index6D ) { return new ArrayFloat . D6 ( index , storage ) ; } else if ( index instanceof Index7D ) { return new ArrayFloat . D7 ( index , storage ) ; } else { return new ArrayFloat ( index , storage ) ; } }
/* create new ArrayFloat with given indexImpl and backing store.
Should be private.
@param index use this Index
@param stor. use this storage. if null, allocate.
@return. new ArrayFloat.D<rank> or ArrayFloat object.
/ * create new ArrayFloat with given indexImpl and backing store . Should be private .