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

Chris Barker chris.barker at noaa.gov
Thu Apr 7 16:38:48 EDT 2016


On Thu, Apr 7, 2016 at 11:31 AM, <josef.pktd at gmail.com> wrote:

> maybe a warning?
>>
>
> AFAIR, there is a lot of code that works correctly with .T being a noop
> for 1D
> e.g. covariance matrix/inner product x.T dot y as mentioned before.
>

oh well, then no warning, either.


> write unit tests with non square 2d arrays and the exception / test error
> shows up fast.
>

Guido wrote a note to python-ideas about the conflict between the use cases
of "scripting" and "large system development" -- he urged both camps, to
respect and listen to each other.

I think this is very much a "scripters" issue -- so no unit tests, etc....

For my part, I STILL have to kick myself once in a while for using square
arrays in testing/exploration!

-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/6ea770b6/attachment.html>


More information about the NumPy-Discussion mailing list