How to check for equality between 2 octave_value objects?

John W. Eaton jwe at bevo.che.wisc.edu
Thu Aug 7 08:46:43 CDT 2008


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


More information about the Octave-maintainers mailing list