[SciPy-User] Using Scipy Sparse Matrices and Weave Inline possible?
Wed May 9 14:01:05 CDT 2012
On Fri, May 4, 2012 at 10:57 PM, cp3028 <firstname.lastname@example.org> 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
> 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...
More information about the SciPy-User