[SciPy-User] Using Scipy Sparse Matrices and Weave Inline possible?

Ralf Gommers ralf.gommers@googlemail....
Wed May 9 14:01:05 CDT 2012

On Fri, May 4, 2012 at 10:57 PM, cp3028 <cp3028@googlemail.com> wrote:

> Hello Everyone,
> I have to assemble a very large sparse matrix from small dense
> matrices. Is there a way to use weave.inlne to speed up the process?
> The problem is, the entries of the small dense matrices are
> distributed very irregular on the large sparse matrice. Until now I
> loop over all dense matrices and every entry and assign it to the
> corresponding position in the sparse large matrice through a lookup
> table.
> Is there a faster way?

I don't have a faster way, but do want to recommend not using weave for any
new code you're writing (because it's unmaintained). Better to use
cython.inline if you can.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/scipy-user/attachments/20120509/48ff740d/attachment.html 

More information about the SciPy-User mailing list