Mercurial > hg > octave-nkf
diff src/ov-base-scalar.h @ 8721:e9cb742df9eb
imported patch sort3.diff
author | Jaroslav Hajek <highegg@gmail.com> |
---|---|
date | Wed, 11 Feb 2009 15:25:53 +0100 |
parents | 1dce30ab0e72 |
children | 3ef774603887 |
line wrap: on
line diff
--- a/src/ov-base-scalar.h +++ b/src/ov-base-scalar.h @@ -108,6 +108,15 @@ return octave_value (scalar); } + sortmode issorted (sortmode mode = UNSORTED) const + { return mode ? mode : ASCENDING; } + + Array<octave_idx_type> sortrows_idx (sortmode) const + { return Array<octave_idx_type> (1, 0); } + + sortmode issorted_rows (sortmode mode = UNSORTED) const + { return mode ? mode : ASCENDING; } + MatrixType matrix_type (void) const { return typ; } MatrixType matrix_type (const MatrixType& _typ) const { MatrixType ret = typ; typ = _typ; return ret; }