[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #63512] does not define the inequality of vect
From: |
Markus Mützel |
Subject: |
[Octave-bug-tracker] [bug #63512] does not define the inequality of vectors |
Date: |
Wed, 14 Dec 2022 04:38:48 -0500 (EST) |
Follow-up Comment #7, bug #63512 (project octave):
Like already stated before, `if` conditions with a non-scalar argument imply
an `all`. So, what you are essentially testing is: "Are *all* elements of `a`
different from `b`?" The answer to that question is: No, at least one element
*is* equal.
If you'd like to check if there is at least one element in the two vectors
that doesn't compare equal, you'd need to adjust your `if` condition to `any(a
!= b)`.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?63512>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/