Re: [Numpy-discussion] NumPtr vs NumPy.i to access C

2008-05-17 Thread Dag Sverre Seljebotn
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/ -

Re: [Numpy-discussion] New project : Spyke python-to-C compiler

2008-04-07 Thread Dag Sverre Seljebotn
(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

Re: [Numpy-discussion] New project : Spyke python-to-C compiler

2008-04-07 Thread Dag Sverre Seljebotn
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

Re: [Numpy-discussion] problem with float64's str()

2008-04-04 Thread Dag Sverre Seljebotn
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

Re: [Numpy-discussion] Project for Cython integration with NumPy

2008-04-01 Thread Dag Sverre Seljebotn
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

Re: [Numpy-discussion] Project for Cython integration with NumPy

2008-04-01 Thread Dag Sverre Seljebotn
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

Re: [Numpy-discussion] Project for Cython integration with NumPy

2008-04-01 Thread Dag Sverre Seljebotn
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

Re: [Numpy-discussion] Project for Cython integration with NumPy

2008-03-31 Thread Dag Sverre Seljebotn
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

[Numpy-discussion] Project for Cython integration with NumPy

2008-03-25 Thread Dag Sverre Seljebotn
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

<    1   2   3   4   5