[Numpy-discussion] Multidimension array access in C via Python API

Eric Moore 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:
> http://numpy-discussion.10968.n7.nabble.com/Multidimension-array-access-in-C-via-Python-API-tp42710p42719.html
> Sent from the Numpy-discussion mailing list archive at Nabble.com.
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion at scipy.org
> https://mail.scipy.org/mailman/listinfo/numpy-discussion
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20160405/61faaf1b/attachment.html>

More information about the NumPy-Discussion mailing list