[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
How to check for equality between 2 octave_value objects?
From: |
John W. Eaton |
Subject: |
How to check for equality between 2 octave_value objects? |
Date: |
Thu, 07 Aug 2008 09:46:43 -0400 |
On 7-Aug-2008, Michael Goffioul wrote:
| Is there a function in the current API that allows to check
| that 2 octave_value objects are equals. The only assumption
| I can make is that both objects are numeric (isnumeric returns
| true), but can be of any size and any element-type. I don't mean
| an element-by-element equality, just a global equality: same
| element-type, same dims, same elements.
Does either isequal or isequalwithequalnans do what you want?
Currently, they are both wrappers around __isequal__, which is also
implemented in a .m file.
jwe