[Numpy-discussion] m-ary logical functions
Thu Jul 12 11:08:24 CDT 2012
On Thu, 2012-07-12 at 16:21 +0100, Nathaniel Smith wrote:
> On Thu, Jul 12, 2012 at 4:13 PM, Henry Gomersall <firstname.lastname@example.org>
> > On Thu, 2012-07-12 at 10:53 -0400, Neal Becker wrote:
> >> I've been bitten several times by this.
> >> logical_or (a, b, c)
> >> is silently accepted when I really meant
> >> logical_or (logical_or (a, b), c)
> >> because the logic functions are binary, where I expected them to be
> >> m-ary.
> > I don't think you mean m-ary. It's just a simple binary OR of more
> > one variable. I don't even know what a m-ary OR would mean (a
> > OR of the binary representation?)
> > It's already a bit-wise OR of an array, that's the whole point
> > (otherwise you could just use `or'!)
> Different "ary": https://en.wikipedia.org/wiki/Arity
haha! Apologies, my bad. Though talking about m-ary in a context like
this is just damned confusing.
More information about the NumPy-Discussion