Daniele Nicolodi <dani...@grinta.net> wrote:

> I can imagine strategies about how to approach the problem, but none
> that would be efficient.  Ideas?

I would just loop from the start and loop from the end and find out where
to clip. Then slice in between. 

If Python loops take too much time, JIT compile them with Numba. 

Sturla

_______________________________________________
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to