What's the inverse of f[x_]:=Flatten[x] where x is Array with dimensions dims?
Michael Pilat
High Performance Mark
You probably want Partition[] or one of its relatives.
来源:https://stackoverflow.com/questions/3807976/inverse-of-flatten-in-mathematica