[Numpy-discussion] question about nonzero behavior in numarray
list at jsaul.de
Fri Apr 2 22:57:22 CST 2004
* I claimed:
> if a==1:
> might be understood as "if a is everywhere one" or "if the length
> of vector a is one", etc. The current meaning is "if a is anywhere
> one", [...]
This is of course wrong and would probably not be misunderstood as
that. What I meant to say is that
>>> if a:
would be evaluated as "true" if a is anywhere non-zero. It was too
late in the night it seems...
Sorry for the confusion.
More information about the Numpy-discussion