[SciPy-dev] sparse comments and questions

Nathan Bell wnbell@gmail....
Wed Jul 11 11:47:57 CDT 2007

On 7/9/07, Peter Skomoroch <peter.skomoroch@gmail.com> wrote:
> In Matlab and some C++ libraries, I've used the following "sparse division"
> functionality :
> When you attempt to divide one sparse matrix by another of the same size,
> return the result of elementwise division of the entries in the matrices.
> This assumes that the two input matrices have the same sparsity structure.
> This is useful when implementing some algorithms like NMF using sparse
> matrices.  Right now in scipy, only division of a sparse matrix by a scalar
> is supported.

I see what you mean now.  I'll try to implement that this weekend.
We currently support elementwise multiplication (via A**B, I believe),
so you could use that in the meantime.

Nathan Bell wnbell@gmail.com

More information about the Scipy-dev mailing list