[Numpy-discussion] deprecate numpy.matrix

Alan G Isaac alan.isaac at gmail.com
Mon Feb 10 16:26:26 EST 2014


On 2/10/2014 4:08 PM, Matthew Brett wrote:
> I think the active questions here are:
> * Should we collect the discussion in coherent form somewhere?
> * Should we add something to the np.matrix docstring and if so what?
> * (Pauli's point): to what extent should we try to emulate the np.matrix API.


Somewhat related to that last point:
could an array grow an `inv` method?
(Perhaps returning a pinv for ill conditioned cases.)

Here are the primary things that make matrices convenient
(particular in a teaching setting):

*   (partly addressed when `dot` method added)
**  (could be partly addressed with an `mpow` method)
.I  (could be partly addressed with an `inv` method)
.H  (currently too controversial for ndarray)

Some might also add the behavior of indexing,
but I could only give qualified agreement to that.

Alan Isaac



More information about the NumPy-Discussion mailing list