[Numpy-discussion] Multidimension array access in C via Python API
ewm at redtetrahedron.org
Tue Apr 5 13:17:42 EDT 2016
Its difficult to say why your code is slow without seeing it. i.e. are you
generating large temporaries? Or doing loops in python that can be pushed
down to C via vectorizing? It may or may not be necessary to leave python
to get things to run fast enough.
On Tue, Apr 5, 2016 at 11:39 AM, mpc <matt.p.conte at gmail.com> wrote:
> This is the reason I'm doing this in the first place, because I made a pure
> python version but it runs really slow for larger data sets, so I'm
> basically rewriting the same function but using the Python and Numpy C API,
> but if you're saying it won't run any faster then maybe I'm going at it the
> wrong way. (Why use the C function version if it's the same speed anyway?)
> You're suggesting perhaps a cython approach, or perhaps a strictly C/C++
> approach given the raw data?
> View this message in context:
> Sent from the Numpy-discussion mailing list archive at Nabble.com.
> NumPy-Discussion mailing list
> NumPy-Discussion at scipy.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the NumPy-Discussion