On Thu, Dec 5, 2013 at 10:35 PM, <josef.p...@gmail.com> wrote:

> what about np.dot,    np.dot(mask, x) which is the same as (mask *
> x).sum(0) ?


I am not sure which way your argument goes, but I don't think you would
find the following natural:

>>> x = array([True, True])
>>> dot(x,x)
True
>>> (x*x).sum()
2
>>> (x*x).sum(0)
2
>>> (x*x).sum(False)
2
_______________________________________________
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to