Mercurial > hg > octave-nkf
changeset 11631:895a1c788281 release-3-0-x
make sort work for ranges
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 07 Feb 2008 22:42:11 -0500 |
parents | 1b01b40886eb |
children | eaaa74f38140 |
files | src/ChangeLog src/ov-range.h |
diffstat | 2 files changed, 10 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2008-02-07 David Bateman <dbateman@free.fr> + + * ov-range.h (octave_range::sort): New functions. + 2008-01-30 Thomas Weber <thomas.weber.mail@gmail.com> * variables.cc (Fclear): Doc fix.
--- a/src/ov-range.h +++ b/src/ov-range.h @@ -132,6 +132,12 @@ octave_value any (int dim = 0) const; + octave_value sort (octave_idx_type dim = 0, sortmode mode = UNDEFINED) const + { return array_value ().sort (dim, mode); } + octave_value sort (Array<octave_idx_type> &sidx, octave_idx_type dim = 0, + sortmode mode = UNDEFINED) const + { return array_value ().sort (sidx, dim, mode); } + bool is_real_type (void) const { return true; } bool is_double_type (void) const { return true; }