May 27, 2013
9:54 p.m.
On Mon, May 27, 2013 at 10:55 PM, Marc de Klerk <deklerkmc@gmail.com> wrote:
This operation has to happen a lot… so I really need it to be fast. The problem I'm having is that the when I isolate and measure the execution time of the gpu code it's much faster than that of the c++ or Cython wrapper - which I cannot really do without.
Another option is also to call into the NumPy C API to evoke essentially the equivalent of np.nonzero(np.diff(np.cumsum(x)))[0] + 1 Stéfan