[SciPy-User] Sparse matrices and dot product

Pauli Virtanen pav@iki...
Sun Nov 28 09:16:19 CST 2010


On Sat, 27 Nov 2010 00:21:26 +0100, Matthieu Brucher wrote:
> Now that dot, matmat, ... are deprecated, what are the functions that
> should be used to replace them?

__mul__

However, I believe 'dot' should be left to be there. `ndarrays` recently 
gained the same method for matrix products, so it makes sense to leave it 
be also for sparse matrices. This has also the advantage that it becomes 
possible to write generic code that works both on sparse matrices and on 
ndarrays.

So unless objections arise, the 'dot' method will be un-deprecated in 0.9.

-- 
Pauli Virtanen



More information about the SciPy-User mailing list