docs: public static int getLd(INDArray arr) {
          //ignore ordering for vectors
          if (arr.isVector()) {
              return (int) arr.length();
          }
  
          return arr.ordering() == NDArrayFactory.C ? (int) arr.size(1) : (int) arr.size(0);
      }