11 #ifndef MLPACK_CORE_MATH_RANGE_IMPL_HPP 12 #define MLPACK_CORE_MATH_RANGE_IMPL_HPP 26 lo(
std::numeric_limits<T>::max()),
27 hi(-
std::numeric_limits<T>::max()) { }
34 lo(point), hi(point) { }
82 (rhs.hi > hi) ? rhs.hi : hi);
104 (rhs.hi < hi) ? rhs.hi : hi);
143 double nlo = r.lo * d;
144 double nhi = r.hi * d;
158 return (lo == rhs.lo) && (hi == rhs.hi);
164 return (lo != rhs.lo) || (hi != rhs.hi);
189 return d >= lo && d <= hi;
198 return lo <= r.hi && hi >= r.lo;
203 template<
typename Archive>
Linear algebra utility functions, generally performed on matrices or vectors.
Definition: cv.hpp:1
Definition: pointer_wrapper.hpp:23
Simple real-valued range.
Definition: range.hpp:19
RangeType()
The upper bound.
Definition: range_impl.hpp:25
Definition of the Range class, which represents a simple range with a lower and upper bound...