Hello,

Consider the following code:

for j in range(5):
        f = np.bincount(x[y == j])

It fails with MemoryError whenever y == j is all False element-wise.


In [96]: np.bincount([])
---------------------------------------------------------------------------
MemoryError                               Traceback (most recent call last)

/home/ernest/<ipython console> in <module>()

MemoryError: 

In [97]: np.__version__
Out[97]: '1.3.0'

Is this a bug?

Bye.

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

Reply via email to