35 #define INLINE_ASCENDING_SORT
36 #define INLINE_DESCENDING_SORT
96 const float *el =
data ();
104 if (el[n-1] < el[0] ||
xisnan (el[0]))
117 while (
xisnan (r) && j < n);
135 while (n > 0 &&
xisnan (el[n-1]))
162 template OCTAVE_API std::ostream&
operator << (std::ostream&,
octave_idx_type numel(void) const
Number of elements in the array.
template OCTAVE_API std::ostream & operator<<(std::ostream &, const Array< float > &)
const T * data(void) const
#define INSTANTIATE_ARRAY(T, API)
sortmode is_sorted(sortmode mode=UNSORTED) const
Ordering is auto-detected or can be specified.
Handles the reference counting for all the derived classes.
static bool nan_ascending_compare(float x, float y)
static bool nan_descending_compare(float x, float y)
Array< float >::compare_fcn_type safe_comparator(sortmode mode, const Array< float > &a, bool allow_chk)
bool sort_isnan< float >(float x)
F77_RET_T const double * x