[Cython] Bug report: some incorrect typed memoryview indexing operations cause crashes

2013-11-05 Thread James Sanders
If I try to compile the following with the current master version: def buggy(int N, double[:] x): x[0, N-1] I get a crash. This only seems to happen when too many indices are used, and at least one of them is an expression involving a variable (for example, things like x[0, N] and x[0, 2-1]

[Cython] Supporting new and old NumPy C API

2013-11-05 Thread Frédéric Bastien
Hi, As you probably know, cython generated c code use the old NumPy C API, so when we compile them with newer version of NumPy this generate warnings. In Theano we compile many different module during the user script. So this cause many warning being printed to the users, so we updated Theano to