[Numpy-discussion] MATLAB to Numpy

Daπid davidmenhur at gmail.com
Sat Oct 21 17:04:43 EDT 2017

On 21 October 2017 at 22:32, Eric Wieser <wieser.eric+numpy at gmail.com>

> David, that doesn’t work, because np.cumsum(mask)[mask] is always equal
> to np.arange(mask.sum()) + 1. Robert’s answer is correct.
Of course, you are right. It makes sense in my head now.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20171021/05d634cc/attachment.html>

More information about the NumPy-Discussion mailing list