|
template<class S > |
| Interval (const texp::template_expression< S > &e) |
|
| Interval () |
| default constructor sets values to zero More...
|
|
| Interval (int n) |
| build an interval from an int More...
|
|
| Interval (unsigned n) |
| build an interval from an unsigned int More...
|
|
| Interval (const T &x) |
| build an interval from a scalar value More...
|
|
| Interval (const T &a, const T &b) |
| build an interval from a pair (the pair will be reordered) More...
|
|
| Interval (const char *s) |
| build an interval from a string More...
|
|
Interval & | operator= (const Interval &i) |
|
template<class X > |
Interval & | operator= (const texp::template_expression< X > &x) |
|
void | define (const T &m, const T &M) |
|
void | assign (const T &m, const T &M) |
|
void | assign (const Interval &b) |
|
template<class X > |
bool | operator== (const X &k) const |
| true if the lower and upper bounds equals to k More...
|
|
template<class X , int r_> |
bool | operator== (const Interval< X, r_ > &b) const |
|
template<class X > |
bool | operator> (const X &x) const |
| comparison with scalar value (>) More...
|
|
template<class X > |
bool | operator>= (const X &x) const |
| comparison with scalar value (>=) More...
|
|
template<class X > |
bool | operator< (const X &x) const |
| comparison with scalar value (<) More...
|
|
template<class X > |
bool | operator<= (const X &x) const |
| comparison with scalar value (<=) More...
|
|
template<class X > |
bool | operator!= (const X &x) const |
| comparison with scalar value (!=) More...
|
|
template<class X , int _r> |
bool | operator< (const Interval< X, _r > &i) const |
|
template<class X , int _r> |
bool | operator> (const Interval< X, _r > &i) const |
|
const T & | lower () const |
|
const T & | upper () const |
|
T & | lower () |
|
T & | upper () |
|
const T & | inf () const |
|
const T & | sup () const |
|
T & | inf () |
|
T & | sup () |
|
Interval & | operator= (const T &x) |
|
template<class X , int R> |
Interval & | operator= (const Interval< X, R > &x) |
|
Interval & | operator+= (const Interval &x) |
|
Interval & | operator-= (const Interval &x) |
|
Interval & | operator*= (const Interval &x) |
|
Interval & | operator/= (const Interval &x) |
|
T | width () const |
| return the width of the interval More...
|
|
T | size () const |
| same as width More...
|
|
| operator T () const |
|
T | center () const |
| return the center of the interval More...
|
|
template<class X > |
Interval< C, R > & | operator= (const texp::template_expression< X > &x) |
|
template<class X > |
| Interval (const texp::template_expression< X > &x) |
|
template<class X , int R> |
Interval< C, mode > & | operator= (const Interval< X, R > &x) |
|
|
static T | dwmul (const T &a, const T &b) |
|
static T | upmul (const T &a, const T &b) |
|
static T | dwdiv (const T &a, const T &b) |
|
static T | updiv (const T &a, const T &b) |
|
static T | dwadd (const T &a, const T &b) |
|
static T | upadd (const T &a, const T &b) |
|
static T | dwsub (const T &a, const T &b) |
|
static T | upsub (const T &a, const T &b) |
|
template<class T, int r = 3>
struct mmx::Interval< T, r >
Generic class for intervals.