Jose Martin wrote:
Hi, I'd like to access a C function from python, and the function takes
input/output arrays. I'd probably use SWIG to do the interface to the C
code. I found 2 options:
-NumPtr module, to access Numeric arrays as pointers
http://www.penzilla.net/tutorials/python/numptr/
-
(Though as the saying goes, little duplication is normal (and perhaps
wanted) for open source software.)
Sorry! I meant a little, completely reversing the meaning of my sentence.
Dag Sverre
___
Numpy-discussion mailing list
What is Spyke?
In many performance critical projects, it is often necessary to
rewrite parts of the application in C. However writing C wrappers can
be time consuming. Spyke offers an alternative approach. You add
annotations to your Python code as strings. These strings are
discarded by
Bruce Southey wrote:
Hi,
This topic has come up many times and the only problem is the lack of
understanding how computers store numbers and computer numerical precision.
The NumPy output is consistent with Python on my x86_64 linux system
with Python 2.5.1:
a=0.0012
a
Dag Sverre Seljebotn wrote:
http://wiki.cython.org/enhancements/numpy
One more comment about the constructor described on the page above.
I read this a different way now, if what you meant is the parameters to
ndarray in
cdef c_numpy.ndarray
http://wiki.cython.org/enhancements/numpy
One more comment about the constructor described on the page above.
It would be good if we could have the same syntax as the current
numpy.ndarray, and then simply call through to the underlying C
constructor. We'd also need
I can foresee certain situations under which we can predict the type
of the result of operations like this one. Would it be possible to
then handle 'y' as an ndarray as well, instead of reverting to Python
object calls?
Indeed - plans are underway to add automatic type inference to
I am going to apply for a Google Summer of Code project about Developing
Cython towards better NumPy integration (Cython: http://cython.org).
Anyone interested in how this is done can have a look at the links below,
any feedback is welcome.
The application I am going to submit (to Python
much about what would be the most convenient
NumPy syntax possible - but have a look if you are interested.
--
Dag Sverre Seljebotn
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion
401 - 409 of 409 matches
Mail list logo