numerix_doc 0.4
interval< C, V > Class Template Reference

#include <interval.hpp>

List of all members.

Public Types

Public Member Functions

Static Public Member Functions

Friends


Detailed Description

template<typename C, typename V = std_interval>
class mmx::interval< C, V >

Definition at line 44 of file interval.hpp.


Member Typedef Documentation

typedef C boundary_type

Definition at line 51 of file interval.hpp.


Constructor & Destructor Documentation

interval ( ) [inline]

Definition at line 53 of file interval.hpp.

: l (0), r (0) {}
interval ( const T &  x) [inline]

Definition at line 54 of file interval.hpp.

                                                   :
    l (Down::template as<C> (x)),
    r (Up::template as<C> (x)) {}
interval ( const interval< T, V > &  x) [inline]

Definition at line 57 of file interval.hpp.

                                                               :
    l (Down::template as<C> (lower (x))),
    r (Up::template as<C> (upper (x))) {}
interval ( const LT &  l2,
const UT &  u2 
) [inline]

Definition at line 61 of file interval.hpp.

                                       :
    l (Down::template as<C> (l2)),
    r (Up::template as<C> (u2)) {}
interval ( const C x) [inline]

Definition at line 64 of file interval.hpp.

: l (x), r (x) {}
interval ( const C l2,
const C r2 
) [inline]

Definition at line 65 of file interval.hpp.

: l (l2), r (r2) {}

Member Function Documentation

static interval<C,V> euler ( ) [inline, static]
static interval<C,V> fuzzy ( ) [inline, static]
static interval<C,V> infinity ( ) [inline, static]
static interval<C,V> log2 ( ) [inline, static]
static interval<C,V> maximal ( ) [inline, static]
static interval<C,V> minimal ( ) [inline, static]
static interval<C,V> nan ( ) [inline, static]
interval< C, V > & operator+= ( const interval< C, V > &  x) [inline]

Definition at line 451 of file interval.hpp.

References mmx::add(), mmx::lower(), and mmx::upper().

                                        {
  l= Down::add (l, lower (x));
  r= Up::add (r, upper (x));
  return *this;
}
interval< C, V > & operator-= ( const interval< C, V > &  x) [inline]

Definition at line 458 of file interval.hpp.

References mmx::lower(), mmx::sub(), and mmx::upper().

                                        {
  l= Down::sub (l, upper (x));
  r= Up::sub (r, lower (x));
  return *this;
}
interval< C, V > & operator<<= ( const xint &  shift) [inline]

Definition at line 623 of file interval.hpp.

                                         {
  incexp2_assign (l, shift);
  incexp2_assign (r, shift);
  return *this;
}
interval< C, V > & operator>>= ( const xint &  shift) [inline]

Definition at line 630 of file interval.hpp.

                                         {
  decexp2_assign (l, shift);
  decexp2_assign (r, shift);
  return *this;
}
static interval<C,V> pi ( ) [inline, static]

Friends And Related Function Documentation

C lower LESSGTR ( const interval< C, V > &  x) [friend]
C upper LESSGTR ( const interval< C, V > &  x) [friend]

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Friends Defines