comparison src/ov-base-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 36594d5bbe13
comparison
equal deleted inserted replaced
7462:dfcaf7ed48e3 7463:2467639bd8c0
108 108
109 MatrixType matrix_type (void) const { return typ; } 109 MatrixType matrix_type (void) const { return typ; }
110 MatrixType matrix_type (const MatrixType& _typ) const 110 MatrixType matrix_type (const MatrixType& _typ) const
111 { MatrixType ret = typ; typ = _typ; return ret; } 111 { MatrixType ret = typ; typ = _typ; return ret; }
112 112
113 octave_value sort (octave_idx_type dim = 0, sortmode mode = UNDEFINED) const 113 octave_value sort (octave_idx_type dim = 0, sortmode mode = ASCENDING) const
114 { return octave_value (matrix.sort (dim, mode)); } 114 { return octave_value (matrix.sort (dim, mode)); }
115 octave_value sort (Array<octave_idx_type> &sidx, octave_idx_type dim = 0, 115 octave_value sort (Array<octave_idx_type> &sidx, octave_idx_type dim = 0,
116 sortmode mode = UNDEFINED) const 116 sortmode mode = ASCENDING) const
117 { return octave_value (matrix.sort (sidx, dim, mode)); } 117 { return octave_value (matrix.sort (sidx, dim, mode)); }
118 118
119 bool is_matrix_type (void) const { return true; } 119 bool is_matrix_type (void) const { return true; }
120 120
121 bool is_numeric_type (void) const { return true; } 121 bool is_numeric_type (void) const { return true; }