#include "oct-sort.h"
Public Types | |
typedef std::function< bool(typename ref_param< T >::type, typename ref_param< T >::type)> | compare_fcn_type |
Static Public Member Functions | |
static bool | ascending_compare (typename ref_param< T >::type, typename ref_param< T >::type) |
static bool | descending_compare (typename ref_param< T >::type, typename ref_param< T >::type) |
Definition at line 100 of file oct-sort.h.
typedef std::function<bool (typename ref_param<T>::type, typename ref_param<T>::type)> octave_sort< T >::compare_fcn_type |
Definition at line 105 of file oct-sort.h.
octave_sort< T >::octave_sort | ( | ) |
Definition at line 121 of file oct-sort.cc.
octave_sort< T >::octave_sort | ( | const compare_fcn_type & | comp | ) |
Definition at line 126 of file oct-sort.cc.
octave_sort< T >::~octave_sort | ( | ) |
Definition at line 131 of file oct-sort.cc.
|
static |
Definition at line 1968 of file oct-sort.cc.
References x.
|
static |
Definition at line 1976 of file oct-sort.cc.
References x.
Referenced by Array< T, Alloc >::lookup(), and Array< T, Alloc >::lookup().
bool octave_sort< T >::is_sorted_rows | ( | const T * | data, |
octave_idx_type | rows, | ||
octave_idx_type | cols | ||
) |
Definition at line 1743 of file oct-sort.cc.
Referenced by Array< T, Alloc >::is_sorted_rows().
bool octave_sort< T >::issorted | ( | const T * | data, |
octave_idx_type | nel | ||
) |
Definition at line 1578 of file oct-sort.cc.
Referenced by Array< T, Alloc >::issorted().
octave_idx_type octave_sort< T >::lookup | ( | const T * | data, |
octave_idx_type | nel, | ||
const T & | value | ||
) |
Definition at line 1788 of file oct-sort.cc.
References lookup().
Referenced by Array< T, Alloc >::lookup(), and Array< T, Alloc >::lookup().
void octave_sort< T >::lookup | ( | const T * | data, |
octave_idx_type | nel, | ||
const T * | values, | ||
octave_idx_type | nvalues, | ||
octave_idx_type * | idx | ||
) |
Definition at line 1824 of file oct-sort.cc.
References lookup().
void octave_sort< T >::lookup_sorted | ( | const T * | data, |
octave_idx_type | nel, | ||
const T * | values, | ||
octave_idx_type | nvalues, | ||
octave_idx_type * | idx, | ||
bool | rev = false |
||
) |
Definition at line 1899 of file oct-sort.cc.
Referenced by Array< T, Alloc >::lookup().
void octave_sort< T >::nth_element | ( | T * | data, |
octave_idx_type | nel, | ||
octave_idx_type | lo, | ||
octave_idx_type | up = -1 |
||
) |
Definition at line 1946 of file oct-sort.cc.
Referenced by Array< T, Alloc >::nth_element().
|
inline |
Definition at line 115 of file oct-sort.h.
Referenced by Array< T, Alloc >::is_sorted_rows(), Array< T, Alloc >::issorted(), Array< T, Alloc >::lookup(), Array< T, Alloc >::lookup(), Array< T, Alloc >::nth_element(), Array< T, Alloc >::sort(), Sparse< T, Alloc >::sort(), Array< T, Alloc >::sort(), and Sparse< T, Alloc >::sort().
void octave_sort< T >::set_compare | ( | sortmode | mode | ) |
Definition at line 138 of file oct-sort.cc.
References ASCENDING, and DESCENDING.
void octave_sort< bool >::sort | ( | bool * | data, |
octave_idx_type * | idx, | ||
octave_idx_type | nel, | ||
std::greater< bool > | |||
) |
Definition at line 118 of file Array-b.cc.
void octave_sort< bool >::sort | ( | bool * | data, |
octave_idx_type * | idx, | ||
octave_idx_type | nel, | ||
std::less< bool > | |||
) |
Definition at line 109 of file Array-b.cc.
void octave_sort< bool >::sort | ( | bool * | data, |
octave_idx_type | nel, | ||
std::greater< bool > | |||
) |
Definition at line 100 of file Array-b.cc.
void octave_sort< bool >::sort | ( | bool * | data, |
octave_idx_type | nel, | ||
std::less< bool > | |||
) |
Definition at line 91 of file Array-b.cc.
void octave_sort< T >::sort | ( | T * | data, |
octave_idx_type * | idx, | ||
octave_idx_type | nel | ||
) |
Definition at line 1539 of file oct-sort.cc.
void octave_sort< T >::sort | ( | T * | data, |
octave_idx_type | nel | ||
) |
Definition at line 1521 of file oct-sort.cc.
Referenced by octinternal_do_mul_colpm_sm(), Array< T, Alloc >::sort(), Sparse< T, Alloc >::sort(), string_vector::sort(), Array< T, Alloc >::sort(), and Sparse< T, Alloc >::sort().
void octave_sort< T >::sort_rows | ( | const T * | data, |
octave_idx_type * | idx, | ||
octave_idx_type | rows, | ||
octave_idx_type | cols | ||
) |
Definition at line 1666 of file oct-sort.cc.
Referenced by Array< T, Alloc >::sort_rows_idx().