[Numpy-discussion] add .H attribute?

Chris Barker - NOAA Federal chris.barker at noaa.gov
Tue Jul 23 20:15:25 EDT 2013

On Tue, Jul 23, 2013 at 6:09 AM, Pauli Virtanen <pav at iki.fi> wrote:

> The .H property has been implemented in Numpy matrices and Scipy's
> sparse matrices for many years.

Then we're done. Numpy  is an array package, NOT a matrix package, and
while you can implement matrix math with arrays (and we do), having
quick and easy mnemonics for common matrix math operations (but
uncommon general purpose array operations) is not eh job of numpy.
That's what the matrix object is for.

Yes, I know the matrix object isn't really what it should be, and
doesn't get much  use, but if you want something that is natural for
doing matrix math, and particularly natural for teaching it -- that's
what it's for -- work to make it what it could be, rather than
polluting numpy with this stuff.

One of the things I've loved about numpy after moving from MATLAB is
that matrixes are second-class citizens, not the other way around.

(OK, I'll go away now....)



Christopher Barker, Ph.D.

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

More information about the NumPy-Discussion mailing list