18 Jul
2014
18 Jul
'14
4:11 p.m.
On 7/18/2014 4:03 AM, Sebastian Berg wrote:
Changing `.T` to promote to 2-d (also maybe to actually only transpose the last two axes for higher D arrays), could be nice, but getting there might take quite a long FutureWarning or even Error -> new feature cycle.
Considering the extent of implied breakage, I hope this will not be considered. Also, there are already nice ways to add an axis (even optionally, with `atleast_2d`). I think having `.T` as a no-op on a 1d array is correct behavior. I would not change it. However I can understand preferring an error. (Mathematica considers it an error.) Alan Isaac