[SciPy-user] Sparse matrices and weave.inline, f2py or Pyrex
davidgrant at gmail.com
Fri Aug 11 16:24:08 CDT 2006
On 8/11/06, William Hunter <willemjagter at gmail.com> wrote:
> 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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the SciPy-user