On Thu, Dec 5, 2013 at 10:35 PM, <[email protected]> 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
[email protected]
http://mail.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to