code: @Override
      public INDArray rot(INDArray reverse) {
          INDArray ret = Nd4j.create(reverse.shape());
          if (reverse.isVector())
              return reverse(reverse);
          else {
              for (int i = 0; i < reverse.slices(); i++) {
                  ret.putSlice(i, reverse(reverse.slice(i)));
              }
          }
          return ret.reshape(reverse.shape());
      }
docs: Reverses the passed in matrix such that m[0] becomes m[m.length - 1] etc
  
  @param reverse the matrix to reverse
  @return the reversed matrix