[Numpy-discussion] Syntax Improvement for Array Transpose

Alan Isaac alan.isaac at gmail.com
Tue Jun 25 11:01:35 EDT 2019


I wish this discussion would be clearer that a.T is not going anywhere,
should not change, and in any case should match a.transpose().
Anything else threatens to break existing code for no good payoff.

How many people in this discussion are proposing that a widely used
library like numpy should make a breaking change in syntax just because
someone guesses it won't break too much code "out there"?
I'm having trouble telling if this is an actual view.

Because a.T cannot reasonably change,
if a.H is allowed, it should mean a.conj().transpose().
This also supports the easiest and least buggy transition away from np.matrix.

But since `a.H` would not be a view of `a`, most probably any `a.H`
proposal should be discarded as misleading and not materially better than
the existing syntax (a.conj().T).

I trust nobody is proposing to change `transpose`.

Cheers, Alan Isaac


More information about the NumPy-Discussion mailing list