[SciPy-user] Sparse matrices and weave.inline, f2py or Pyrex

David Grant davidgrant at gmail.com
Fri Aug 11 16:24:08 CDT 2006

On 8/11/06, William Hunter <willemjagter at gmail.com> wrote:
> List;
> Has anyone ever attempted using sparse matrices in combination with
> either one of the following; weave.inline, f2py or Pyrex?
> What is the best option? Perhaps a case of personal preference?
> Reason I'm asking: I've gotten the solving part of my code to run
> satisfactorily, but building them with Python's for loops takes a heck
> of a long time, too long.

Have you tried using vector indexing with numpy first? See if you can remove
some of those python for loops.

David Grant
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://projects.scipy.org/pipermail/scipy-user/attachments/20060811/a7c140b3/attachment.html 

More information about the SciPy-user mailing list