[Numpy-discussion] deprecate numpy.matrix

alex argriffi at ncsu.edu
Mon Feb 10 12:19:24 EST 2014


On Mon, Feb 10, 2014 at 12:16 PM, Nathaniel Smith <njs at pobox.com> wrote:
> 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


>>> csr_matrix([[1, 2], [3, 4]]) * array([5, 6])
array([17, 39])



More information about the NumPy-Discussion mailing list