code: def reshape_fortran(tensor, shape):
      
      return tensor.T.reshape(tuple(reversed(shape))).T
docs: The missing Fortran reshape for mx.NDArray
  
      Parameters
      ----------
      tensor : NDArray
          source tensor
      shape : NDArray
          desired shape
  
      Returns
      -------
      output : NDArray
          reordered result