83 #if !defined (octave_oct_sort_h)
84 #define octave_oct_sort_h 1
93 #define MAX_MERGE_PENDING 85
100 #define MERGESTATE_TEMP_SIZE 1024
112 typename ref_param<T>::type);
139 bool is_sorted_rows (
const T *data,
162 static bool ascending_compare (
typename ref_param<T>::type,
163 typename ref_param<T>::type);
165 static bool descending_compare (
typename ref_param<T>::type,
166 typename ref_param<T>::type);
186 : min_gallop (), a (0), ia (0), alloced (0), n (0)
190 {
delete [] a;
delete [] ia; }
234 template <
class Comp>
238 template <
class Comp>
242 template <
class Comp>
246 template <
class Comp>
250 template <
class Comp>
254 template <
class Comp>
259 template <
class Comp>
264 template <
class Comp>
269 template <
class Comp>
274 template <
class Comp>
277 template <
class Comp>
280 template <
class Comp>
281 int merge_collapse (T *data, Comp comp);
283 template <
class Comp>
286 template <
class Comp>
287 int merge_force_collapse (T *data, Comp comp);
289 template <
class Comp>
294 template <
class Comp>
297 template <
class Comp>
300 template <
class Comp>
303 template <
class Comp>
308 template <
class Comp>
312 template <
class Comp>
314 const T& value, Comp comp);
316 template <
class Comp>
321 template <
class Comp>
326 template <
class Comp>
void set_compare(compare_fcn_type comp)
octave_idx_type lookup(const T *x, octave_idx_type n, T y)
#define MAX_MERGE_PENDING
if_then_else< is_class_type< T >::no, T, T const & >::result type
octave_idx_type min_gallop