[Numpy-discussion] add .H attribute?

Stéfan van der Walt stefan at sun.ac.za
Thu Jul 18 10:18:56 EDT 2013


On Sat, Jul 13, 2013 at 7:46 PM, Nathaniel Smith <njs at pobox.com> wrote:
> Why not just write
>
> def H(a):
>     return a.conj().T

It's hard to convince students that this is the Best Way of doing
things in NumPy.  Why, they ask, can you do it using a' in MATLAB,
then?

I've tripped over this one before, since it's not the kind of thing
you imagine would be unimplemented, and then spend some time trying to
find it.

Stéfan



More information about the NumPy-Discussion mailing list