65 cache(i) = b + i * increment;
107 #if defined (BOUNDS_CHECKING)
142 if ((inc > 0 && end >=
limit) || (inc < 0 && end <=
limit))
245 else if (! ascending && rng_base < rng_limit && rng_inc > 0.0)
264 bool reverse =
false;
275 else if (! ascending && rng_base < rng_limit && rng_inc > 0.0)
302 Range retval = *
this;
312 (*current_liboctave_error_handler) (
"Range::sort: invalid dimension");
321 Range retval = *
this;
331 (*current_liboctave_error_handler) (
"Range::sort: invalid dimension");
352 double b = a.
base ();
353 double increment = a.
inc ();
361 os << b + i * increment <<
" ";
365 os << (increment > 0 ? a.
max () : a.
min ()) <<
"\n";
396 if (result.rng_nelem < 0)
405 if (result.rng_nelem < 0)
414 if (result.rng_nelem < 0)
423 if (result.rng_nelem < 0)
432 if (result.rng_nelem < 0)
441 if (result.rng_nelem < 0)
496 double rmax = q / (2.0 - ct);
499 t1 = (ct / q) * (t1 < 0.0 ? -t1 : t1);
500 t1 = rmax < t1 ? rmax : t1;
501 t1 = ct > t1 ? ct : t1;
504 if (x <= 0.0 || (t1 - x) < rmax)
518 double ct = 3.0 * std::numeric_limits<double>::epsilon ())
520 double tu = fabs (u);
521 double tv = fabs (v);
523 return fabs (u - v) < ((tu > tv ? tu : tv) * ct);
533 || (rng_limit < rng_base && rng_inc > 0))
539 double ct = 3.0 * std::numeric_limits<double>::epsilon ();