code: public static double getDouble(INDArray arr, int[] indices) {
          long offset = getOffset(arr.shapeInfo(), ArrayUtil.toLongArray(indices));
          return arr.data().getDouble(offset);
      }
docs: Get a double based on the array and given indices
  
  @param arr     the array to retrieve the double from
  @param indices the indices to iterate over
  @return the double at the specified index