code: def _get_c_valid_arr(self, x):
          
          orig_shape = x.shape
          x = np.ascontiguousarray(x.reshape(orig_shape[0], -1).T)
          return orig_shape, x
docs: Warning! Interpretation of axes is different for C code.