Re: [Numpy-discussion] Numpy Generalized Ufuncs: Pointer Arithmetic and Segmentation Faults (Debugging?)

2015-10-25 Thread Travis Oliphant
Two things that might help you create generalized ufuncs: 1) Look at Numba --- it makes it very easy to write generalized ufuncs in simple Python code. Numba will compile to machine code so it can be as fast as writing in C. Here is the documentation for that specific feature: http://numba.pyda

Re: [Numpy-discussion] Numpy Generalized Ufuncs: Pointer Arithmetic and Segmentation Faults (Debugging?)

2015-10-25 Thread Jaime Fernández del Río
HI Eleanore, Thanks for the kind words, you are very welcome! As for your issues, I think they are coming from the handling of the strides you are doing in the slow_dtw_dist function. The strides are the number of bytes you have to advance your pointer to get to the next item. In your code, you

[Numpy-discussion] Numpy Generalized Ufuncs: Pointer Arithmetic and Segmentation Faults (Debugging?)

2015-10-25 Thread eleanore.young
Dear Numpy maintainers and developers, Thanks for providing such a great numerical library! I’m currently trying to implement the Dynamic Time Warping metric as a set of generalised numpy ufuncs, but unfortunately, I have lasting issues with pointer arithmetic and segmentation faults. Is there

[Numpy-discussion] ANN: Scipy 0.16.1 release

2015-10-25 Thread Ralf Gommers
Hi all, I'm happy to announce the availability of the Scipy 0.16.1 release. This is a bugfix only release; it contains no new features compared to 0.16.0. The sources and binary installers can be found at: - Source tarballs: at https://github.com/scipy/scipy/releases and on PyPi. - OS X: