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

Nathaniel Smith njs at pobox.com
Fri Apr 8 17:13:08 EDT 2016

On Fri, Apr 8, 2016 at 2:09 PM, Alan Isaac <alan.isaac at gmail.com> wrote:
> On 4/8/2016 4:28 PM, Ian Henriksen wrote:
>> The biggest things to me are having a broadcasting 2D transpose and having
>> some
>> form of transpose that doesn't silently pass 1D arrays through unchanged.
> This comment, like much of this thread, seems to long
> for the matrix class but not want to actually use it.
> It seems pretty simple to me: if you want everything
> forced to 2d, always use the matrix class.  If you want
> to use arrays, they work nicely now, and they work
> as expected once you understand what you are
> working with.  (I.e., *not* matrices.)

Note the word "broadcasting" -- he doesn't want 2d matrices, he wants
tools that make it easy to work with stacks of 2d matrices stored in
2-or-more-dimensional arrays.


Nathaniel J. Smith -- https://vorpus.org

More information about the NumPy-Discussion mailing list