code: public static int getStrideForOrdering(INDArray arr) {
          if (arr.ordering() == NDArrayFactory.FORTRAN) {
              return getBlasStride(arr);
          } else {
              return arr.stride(1);
          }
      }
docs: Return the proper stride
  through a vector
  relative to the ordering of the array
  This is for incX/incY parameters in BLAS.
  
  @param arr the array to get the stride for
  @return the stride wrt the ordering
  for the given array