[SciPy-user] Converting dense into sparse matrices is slow

Nils Wagner nwagner at mecha.uni-stuttgart.de
Fri Mar 17 06:45:17 CST 2006


Hi all,

AFAIK linalg.kron only works with dense matrices.
It would be nice if kron can handle sparse matrices as well.
The example (bao.py) takes a lot of time

Kronecker product (sec): 6.28
Dense to sparse (sec): 70.09
Number of nonzero elements 16129
If one uses a dense matrix there are 16777216 entries.

 Anyway, is it possible to accelerate some operations (especially
csr_matrix()) in bao.py ?

Nils




-------------- next part --------------
A non-text attachment was scrubbed...
Name: bao.py
Type: text/x-python
Size: 875 bytes
Desc: not available
Url : http://www.scipy.net/pipermail/scipy-user/attachments/20060317/9f97ab10/bao.py


More information about the SciPy-user mailing list