35 #define INLINE_ASCENDING_SORT
36 #define INLINE_DESCENDING_SORT
96 const double *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&,
template OCTAVE_API std::ostream & operator<<(std::ostream &, const Array< double > &)
bool sort_isnan< double >(double x)
octave_idx_type numel(void) const
Number of elements in the array.
static bool nan_descending_compare(double x, double y)
#define INSTANTIATE_ARRAY(T, API)
Array< double >::compare_fcn_type safe_comparator(sortmode mode, const Array< double > &a, bool allow_chk)
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(double x, double y)
F77_RET_T const double * x