Mercurial > hg > octave-nkf
comparison src/ov-str-mat.h @ 7463:2467639bd8c0
eliminate UNDEFINED sort mode
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Fri, 08 Feb 2008 16:00:16 -0500 |
parents | 402168152bb9 |
children | 8c32f95c2639 |
comparison
equal
deleted
inserted
replaced
7462:dfcaf7ed48e3 | 7463:2467639bd8c0 |
---|---|
124 | 124 |
125 string_vector all_strings (bool pad = false) const; | 125 string_vector all_strings (bool pad = false) const; |
126 | 126 |
127 std::string string_value (bool force = false) const; | 127 std::string string_value (bool force = false) const; |
128 | 128 |
129 octave_value sort (octave_idx_type dim = 0, sortmode mode = UNDEFINED) const | 129 octave_value sort (octave_idx_type dim = 0, sortmode mode = ASCENDING) const |
130 { return octave_value (matrix.sort (dim, mode), true); } | 130 { return octave_value (matrix.sort (dim, mode), true); } |
131 octave_value sort (Array<octave_idx_type> &sidx, octave_idx_type dim = 0, | 131 octave_value sort (Array<octave_idx_type> &sidx, octave_idx_type dim = 0, |
132 sortmode mode = UNDEFINED) const | 132 sortmode mode = ASCENDING) const |
133 { return octave_value (matrix.sort (sidx, dim, mode), true); } | 133 { return octave_value (matrix.sort (sidx, dim, mode), true); } |
134 | 134 |
135 bool print_as_scalar (void) const { return (rows () <= 1); } | 135 bool print_as_scalar (void) const { return (rows () <= 1); } |
136 | 136 |
137 void print_raw (std::ostream& os, bool pr_as_read_syntax = false) const; | 137 void print_raw (std::ostream& os, bool pr_as_read_syntax = false) const; |
225 octave_value do_index_op (const octave_value_list& idx, | 225 octave_value do_index_op (const octave_value_list& idx, |
226 bool resize_ok = false) | 226 bool resize_ok = false) |
227 { return do_index_op_internal (idx, resize_ok, '\''); } | 227 { return do_index_op_internal (idx, resize_ok, '\''); } |
228 | 228 |
229 | 229 |
230 octave_value sort (octave_idx_type dim = 0, sortmode mode = UNDEFINED) const | 230 octave_value sort (octave_idx_type dim = 0, sortmode mode = ASCENDING) const |
231 { return octave_value (matrix.sort (dim, mode), true, '\''); } | 231 { return octave_value (matrix.sort (dim, mode), true, '\''); } |
232 octave_value sort (Array<octave_idx_type> &sidx, octave_idx_type dim = 0, | 232 octave_value sort (Array<octave_idx_type> &sidx, octave_idx_type dim = 0, |
233 sortmode mode = UNDEFINED) const | 233 sortmode mode = ASCENDING) const |
234 { return octave_value (matrix.sort (sidx, dim, mode), true, '\''); } | 234 { return octave_value (matrix.sort (sidx, dim, mode), true, '\''); } |
235 | 235 |
236 private: | 236 private: |
237 | 237 |
238 DECLARE_OCTAVE_ALLOCATOR | 238 DECLARE_OCTAVE_ALLOCATOR |