[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
comparision of octave_value
From: |
Nimrod Mesika |
Subject: |
comparision of octave_value |
Date: |
Wed, 23 Aug 2000 03:17:08 +0300 |
User-agent: |
Mutt/1.2i |
Is it possible to compare (equal/not equal) two octave_values
without explicitly checking for each possible type?
I'm trying to implement Matlab's findobj() function which can find
an object using one of its properties. Properties are octave_values
(sometimes strings, scalars, matrices).
The following code does *not* work:
octave_value value = obj->get(property);
if ( (value == args(1) ).bool_value() ) {
l.push_back(obj);
n++;
}
--
Nimrod.
http://www.geocities.com/rodd_27
-----------------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.
Octave's home on the web: http://www.che.wisc.edu/octave/octave.html
How to fund new projects: http://www.che.wisc.edu/octave/funding.html
Subscription information: http://www.che.wisc.edu/octave/archive.html
-----------------------------------------------------------------------
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- comparision of octave_value,
Nimrod Mesika <=