[Numpy-discussion] Deprecate boolean math operators?
Alexander Belopolsky
ndarray at mac.com
Thu Dec 5 23:00:50 EST 2013
On Thu, Dec 5, 2013 at 10:35 PM, <josef.pktd at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20131205/6c1f68a8/attachment.html>
More information about the NumPy-Discussion
mailing list