[Numpy-discussion] ndarray.T2 for 2D transpose

Chris Barker chris.barker at noaa.gov
Thu Apr 7 13:03:10 EDT 2016


On Thu, Apr 7, 2016 at 8:13 AM, Todd <toddrjen at gmail.com> wrote:

> First you need to turn a into a 2D array.  I can think of 10 ways to do
> this off the top of my head, and there may be more:
>
> snip

Basically, my argument here is the same as the argument from pep465 for the
> inclusion of the @ operator:
>
> https://www.python.org/dev/peps/pep-0465/#transparent-syntax-is-especially-crucial-for-non-expert-programmers
>
> I think is this all a good argument for a clean and obvious way to make a
column vector, but I don't think overloading transpose is the way to do
that.

-CHB


-- 

Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R            (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115       (206) 526-6317   main reception

Chris.Barker at noaa.gov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20160407/da4614e3/attachment.html>


More information about the NumPy-Discussion mailing list