[Numpy-discussion] proposing a "beware of [as]matrix()" warning

Dag Sverre Seljebotn dagss@student.matnat.uio...
Thu Apr 29 02:58:12 CDT 2010

Alan G Isaac wrote:
> On 4/28/2010 12:08 PM, Dag Sverre Seljebotn wrote:
>> it would be good to deprecate the matrix class
>> from NumPy
> Please let us not have this discussion all over again.
> The matrix class is very useful for teaching.
> In economics for example, the use of matrix algebra
> is widespread, while algebra with arrays that are
> not matrices is very rare.  I can (and do) use NumPy
> matrices even in undergraduate courses.
> If you do not like them, do not use them.
> If you want `matrix` replaced with a better matrix
> object, offer a replacement for community consideration.
Point taken, I'm sorry.

(If or when my own matrix linear algebra code matures I'll open source 
it for sure, but it's not there yet, and I don't believe it will fit 
within NumPy.)

Dag Sverre

More information about the NumPy-Discussion mailing list