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

David Grant davidgrant at gmail.com
Fri Aug 11 17:24:08 EDT 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
http://www.davidgrant.ca
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.scipy.org/pipermail/scipy-user/attachments/20060811/a7c140b3/attachment.html>


More information about the SciPy-User mailing list