[Numpy-discussion] deprecate numpy.matrix

Nathaniel Smith njs at pobox.com
Mon Feb 10 12:16:01 EST 2014

On Mon, Feb 10, 2014 at 12:02 PM, Matthieu Brucher
<matthieu.brucher at gmail.com> wrote:
> Yes, but these will be scipy.sparse matrices, nothing to do with numpy
> (dense) matrices.

Unfortunately when scipy.sparse matrices interact with dense ndarrays
(e.g., sparse matrix * dense vector), then you always get back
np.matrix objects instead of np.ndarray objects. So it's impossible to
avoid np.matrix entirely if using scipy.sparse.


More information about the NumPy-Discussion mailing list