Gecode::FloatVal float.hh
Constructors and initialization
forceinline Gecode::FloatVal::FloatVal (void) FloatVal void Default constructor. forceinline Gecode::FloatVal::FloatVal (const FloatNum &n) FloatVal const FloatNum & n Initialize with float number n. forceinline Gecode::FloatVal::FloatVal (const FloatNum &l, const FloatNum &u) FloatVal const FloatNum & l const FloatNum & u Initialize with lower bound l and upper bound u. forceinline Gecode::FloatVal::FloatVal (const FloatVal &v) FloatVal const FloatVal & v Copy constructor. FloatVal & forceinline FloatVal & Gecode::FloatVal::operator= (const FloatNum &n) operator= const FloatNum & n Assignment operator. FloatVal & forceinline FloatVal & Gecode::FloatVal::operator= (const FloatVal &v) operator= const FloatVal & v Assignment operator. void forceinline void Gecode::FloatVal::assign (FloatNum const &l, FloatNum const &u) assign FloatNum const & l FloatNum const & u Assign lower bound l and upper bound u.
Value access
FloatNum forceinline FloatNum Gecode::FloatVal::min (void) const min void Return lower bound. FloatNum forceinline FloatNum Gecode::FloatVal::max (void) const max void Return upper bound. FloatNum forceinline FloatNum Gecode::FloatVal::size (void) const size void Return size of float value (distance between maximum and minimum) FloatNum forceinline FloatNum Gecode::FloatVal::med (void) const med void Return median of float value.
Value tests
bool forceinline bool Gecode::FloatVal::tight (void) const tight void Test whether float is tight. bool forceinline bool Gecode::FloatVal::singleton (void) const singleton void Test whether float is a singleton. bool forceinline bool Gecode::FloatVal::in (FloatNum n) const in FloatNum n Test whether n is included. bool forceinline bool Gecode::FloatVal::zero_in (void) const zero_in void Test whether zero is included.
Float value construction
FloatVal forceinline FloatVal Gecode::FloatVal::hull (FloatNum x, FloatNum y) hull FloatNum x FloatNum y Return hull of x and y. FloatVal forceinline FloatVal Gecode::FloatVal::pi_half (void) pi_half void Return $\pi/2$. FloatVal forceinline FloatVal Gecode::FloatVal::pi (void) pi void Return lower bound of $\pi$. FloatVal forceinline FloatVal Gecode::FloatVal::pi_twice (void) pi_twice void Return $2\pi$.
Update operators
FloatVal & forceinline FloatVal & Gecode::FloatVal::operator+= (const FloatNum &n) operator+= const FloatNum & n Increment by n. FloatVal & forceinline FloatVal & Gecode::FloatVal::operator-= (const FloatNum &n) operator-= const FloatNum & n Subtract by n. FloatVal & forceinline FloatVal & Gecode::FloatVal::operator*= (const FloatNum &n) operator*= const FloatNum & n Multiply by n. FloatVal & forceinline FloatVal & Gecode::FloatVal::operator/= (const FloatNum &n) operator/= const FloatNum & n Divide by n. FloatVal & forceinline FloatVal & Gecode::FloatVal::operator+= (const FloatVal &v) operator+= const FloatVal & v Increment by v. FloatVal & forceinline FloatVal & Gecode::FloatVal::operator-= (const FloatVal &v) operator-= const FloatVal & v Subtract by v. FloatVal & forceinline FloatVal & Gecode::FloatVal::operator*= (const FloatVal &v) operator*= const FloatVal & v Multiply by v. FloatVal & forceinline FloatVal & Gecode::FloatVal::operator/= (const FloatVal &v) operator/= const FloatVal & v Divide by v.
boost::numeric::interval_lib::save_state< Float::Rounding > typedef boost::numeric::interval_lib::save_state<Float::Rounding> Gecode::FloatVal::R R Used rounding policies. boost::numeric::interval_lib::checking_strict< FloatNum > typedef boost::numeric::interval_lib::checking_strict<FloatNum> Gecode::FloatVal::P P Used checking policy. boost::numeric::interval< FloatNum, boost::numeric::interval_lib::policies< R, P > > typedef boost::numeric::interval<FloatNum, boost::numeric::interval_lib::policies<R, P> > Gecode::FloatVal::FloatValImpType FloatValImpType Implementation type for float value. FloatValImpType FloatValImpType Gecode::FloatVal::x x Implementation of float value. friend FloatVal FloatVal operator+ (const FloatVal &x) operator+ const FloatVal & x friend FloatVal FloatVal operator- (const FloatVal &x) operator- const FloatVal & x friend FloatVal FloatVal operator+ (const FloatVal &x, const FloatVal &y) operator+ const FloatVal & x const FloatVal & y friend FloatVal FloatVal operator+ (const FloatVal &x, const FloatNum &y) operator+ const FloatVal & x const FloatNum & y friend FloatVal FloatVal operator+ (const FloatNum &x, const FloatVal &y) operator+ const FloatNum & x const FloatVal & y friend FloatVal FloatVal operator- (const FloatVal &x, const FloatVal &y) operator- const FloatVal & x const FloatVal & y friend FloatVal FloatVal operator- (const FloatVal &x, const FloatNum &y) operator- const FloatVal & x const FloatNum & y friend FloatVal FloatVal operator- (const FloatNum &x, const FloatVal &y) operator- const FloatNum & x const FloatVal & y friend FloatVal FloatVal operator* (const FloatVal &x, const FloatVal &y) operator* const FloatVal & x const FloatVal & y friend FloatVal FloatVal operator* (const FloatVal &x, const FloatNum &y) operator* const FloatVal & x const FloatNum & y friend FloatVal FloatVal operator* (const FloatNum &x, const FloatVal &y) operator* const FloatNum & x const FloatVal & y friend FloatVal FloatVal operator/ (const FloatVal &x, const FloatVal &y) operator/ const FloatVal & x const FloatVal & y friend FloatVal FloatVal operator/ (const FloatVal &x, const FloatNum &y) operator/ const FloatVal & x const FloatNum & y friend FloatVal FloatVal operator/ (const FloatNum &x, const FloatVal &y) operator/ const FloatNum & x const FloatVal & y friend bool bool operator< (const FloatVal &x, const FloatVal &y) operator< const FloatVal & x const FloatVal & y friend bool bool operator< (const FloatVal &x, const FloatNum &y) operator< const FloatVal & x const FloatNum & y friend bool bool operator< (const FloatNum &x, const FloatVal &y) operator< const FloatNum & x const FloatVal & y friend bool bool operator<= (const FloatVal &x, const FloatVal &y) operator<= const FloatVal & x const FloatVal & y friend bool bool operator<= (const FloatVal &x, const FloatNum &y) operator<= const FloatVal & x const FloatNum & y friend bool bool operator<= (const FloatNum &x, const FloatVal &y) operator<= const FloatNum & x const FloatVal & y friend bool bool operator> (const FloatVal &x, const FloatVal &y) operator> const FloatVal & x const FloatVal & y friend bool bool operator> (const FloatVal &x, const FloatNum &y) operator> const FloatVal & x const FloatNum & y friend bool bool operator> (const FloatNum &x, const FloatVal &y) operator> const FloatNum & x const FloatVal & y friend bool bool operator>= (const FloatVal &x, const FloatVal &y) operator>= const FloatVal & x const FloatVal & y friend bool bool operator>= (const FloatVal &x, const FloatNum &y) operator>= const FloatVal & x const FloatNum & y friend bool bool operator>= (const FloatNum &x, const FloatVal &y) operator>= const FloatNum & x const FloatVal & y friend bool bool operator== (const FloatVal &x, const FloatVal &y) operator== const FloatVal & x const FloatVal & y friend bool bool operator== (const FloatVal &x, const FloatNum &y) operator== const FloatVal & x const FloatNum & y friend bool bool operator== (const FloatNum &x, const FloatVal &y) operator== const FloatNum & x const FloatVal & y friend bool bool operator!= (const FloatVal &x, const FloatVal &y) operator!= const FloatVal & x const FloatVal & y friend bool bool operator!= (const FloatVal &x, const FloatNum &y) operator!= const FloatVal & x const FloatNum & y friend bool bool operator!= (const FloatNum &x, const FloatVal &y) operator!= const FloatNum & x const FloatVal & y class Char class Traits friend std::basic_ostream< Char, Traits > & std::basic_ostream<Char,Traits>& operator<< (std::basic_ostream< Char, Traits > &os, const FloatVal &x) operator<< std::basic_ostream< Char, Traits > & os const FloatVal & x friend FloatVal FloatVal abs (const FloatVal &x) abs const FloatVal & x friend FloatVal FloatVal sqrt (const FloatVal &x) sqrt const FloatVal & x friend FloatVal FloatVal sqr (const FloatVal &x) sqr const FloatVal & x friend FloatVal FloatVal pow (const FloatVal &x, int n) pow const FloatVal & x int n friend FloatVal FloatVal nroot (const FloatVal &x, int n) nroot const FloatVal & x int n friend FloatVal FloatVal max (const FloatVal &x, const FloatVal &y) max const FloatVal & x const FloatVal & y friend FloatVal FloatVal max (const FloatVal &x, const FloatNum &y) max const FloatVal & x const FloatNum & y friend FloatVal FloatVal max (const FloatNum &x, const FloatVal &y) max const FloatNum & x const FloatVal & y friend FloatVal FloatVal min (const FloatVal &x, const FloatVal &y) min const FloatVal & x const FloatVal & y friend FloatVal FloatVal min (const FloatVal &x, const FloatNum &y) min const FloatVal & x const FloatNum & y friend FloatVal FloatVal min (const FloatNum &x, const FloatVal &y) min const FloatNum & x const FloatVal & y friend bool bool Float::subset (const FloatVal &x, const FloatVal &y) Float::subset const FloatVal & x const FloatVal & y friend bool bool Float::proper_subset (const FloatVal &x, const FloatVal &y) Float::proper_subset const FloatVal & x const FloatVal & y friend bool bool Float::overlap (const FloatVal &x, const FloatVal &y) Float::overlap const FloatVal & x const FloatVal & y friend FloatVal FloatVal Float::intersect (const FloatVal &x, const FloatVal &y) Float::intersect const FloatVal & x const FloatVal & y friend FloatVal FloatVal Float::hull (const FloatVal &x, const FloatVal &y) Float::hull const FloatVal & x const FloatVal & y friend FloatVal FloatVal Float::hull (const FloatVal &x, const FloatNum &y) Float::hull const FloatVal & x const FloatNum & y friend FloatVal FloatVal Float::hull (const FloatNum &x, const FloatVal &y) Float::hull const FloatNum & x const FloatVal & y friend FloatVal FloatVal Float::hull (const FloatNum &x, const FloatNum &y) Float::hull const FloatNum & x const FloatNum & y forceinline Gecode::FloatVal::FloatVal (const FloatValImpType &i) FloatVal const FloatValImpType & i Initialize from implementation i. bool bool subset (const FloatVal &x, const FloatVal &y) subset const FloatVal & x const FloatVal & y Test whether x is a subset of y. bool bool proper_subset (const FloatVal &x, const FloatVal &y) proper_subset const FloatVal & x const FloatVal & y Test whether x is a proper subset of y. bool bool overlap (const FloatVal &x, const FloatVal &y) overlap const FloatVal & x const FloatVal & y Test whether x and y overlap. FloatVal FloatVal intersect (const FloatVal &x, const FloatVal &y) intersect const FloatVal & x const FloatVal & y Return intersection of x and y. FloatVal FloatVal hull (const FloatVal &x, const FloatVal &y) hull const FloatVal & x const FloatVal & y Return hull of x and y. FloatVal FloatVal hull (const FloatVal &x, const FloatNum &y) hull const FloatVal & x const FloatNum & y Return hull of x and y. FloatVal FloatVal hull (const FloatNum &x, const FloatVal &y) hull const FloatNum & x const FloatVal & y Return hull of x and y. FloatVal FloatVal hull (const FloatNum &x, const FloatNum &y) hull const FloatNum & x const FloatNum & y Return hull of x and y. FloatVal FloatVal operator+ (const FloatVal &x) operator+ const FloatVal & x Arithmetic operator. FloatVal FloatVal operator- (const FloatVal &x) operator- const FloatVal & x Arithmetic operator. FloatVal FloatVal operator+ (const FloatVal &x, const FloatVal &y) operator+ const FloatVal & x const FloatVal & y Arithmetic operator. FloatVal FloatVal operator+ (const FloatVal &x, const FloatNum &y) operator+ const FloatVal & x const FloatNum & y Arithmetic operator. FloatVal FloatVal operator+ (const FloatNum &x, const FloatVal &y) operator+ const FloatNum & x const FloatVal & y Arithmetic operator. FloatVal FloatVal operator- (const FloatVal &x, const FloatVal &y) operator- const FloatVal & x const FloatVal & y Arithmetic operator. FloatVal FloatVal operator- (const FloatVal &x, const FloatNum &y) operator- const FloatVal & x const FloatNum & y Arithmetic operator. FloatVal FloatVal operator- (const FloatNum &x, const FloatVal &y) operator- const FloatNum & x const FloatVal & y Arithmetic operator. FloatVal FloatVal operator* (const FloatVal &x, const FloatVal &y) operator* const FloatVal & x const FloatVal & y Arithmetic operator. FloatVal FloatVal operator* (const FloatVal &x, const FloatNum &y) operator* const FloatVal & x const FloatNum & y Arithmetic operator. FloatVal FloatVal operator* (const FloatNum &x, const FloatVal &y) operator* const FloatNum & x const FloatVal & y Arithmetic operator. FloatVal FloatVal operator/ (const FloatVal &x, const FloatVal &y) operator/ const FloatVal & x const FloatVal & y Arithmetic operator. FloatVal FloatVal operator/ (const FloatVal &x, const FloatNum &y) operator/ const FloatVal & x const FloatNum & y Arithmetic operator. FloatVal FloatVal operator/ (const FloatNum &r, const FloatVal &x) operator/ const FloatNum & r const FloatVal & x Arithmetic operator. bool bool operator< (const FloatVal &x, const FloatVal &y) operator< const FloatVal & x const FloatVal & y Comparison operator. bool bool operator< (const FloatVal &x, const FloatNum &y) operator< const FloatVal & x const FloatNum & y Comparison operator. bool bool operator< (const FloatNum &x, const FloatVal &y) operator< const FloatNum & x const FloatVal & y Comparison operator. bool bool operator<= (const FloatVal &x, const FloatVal &y) operator<= const FloatVal & x const FloatVal & y Comparison operator. bool bool operator<= (const FloatVal &x, const FloatNum &y) operator<= const FloatVal & x const FloatNum & y Comparison operator. bool bool operator<= (const FloatNum &x, const FloatVal &y) operator<= const FloatNum & x const FloatVal & y Comparison operator. bool bool operator> (const FloatVal &x, const FloatVal &y) operator> const FloatVal & x const FloatVal & y Comparison operator. bool bool operator> (const FloatVal &x, const FloatNum &y) operator> const FloatVal & x const FloatNum & y Comparison operator. bool bool operator> (const FloatNum &x, const FloatVal &y) operator> const FloatNum & x const FloatVal & y Comparison operator. bool bool operator>= (const FloatVal &x, const FloatVal &y) operator>= const FloatVal & x const FloatVal & y Comparison operator. bool bool operator>= (const FloatVal &x, const FloatNum &y) operator>= const FloatVal & x const FloatNum & y Comparison operator. bool bool operator>= (const FloatNum &x, const FloatVal &y) operator>= const FloatNum & x const FloatVal & y Comparison operator. bool bool operator== (const FloatVal &x, const FloatVal &y) operator== const FloatVal & x const FloatVal & y Comparison operator. bool bool operator== (const FloatVal &x, const FloatNum &y) operator== const FloatVal & x const FloatNum & y Comparison operator. bool bool operator== (const FloatNum &x, const FloatVal &y) operator== const FloatNum & x const FloatVal & y Comparison operator. bool bool operator!= (const FloatVal &x, const FloatVal &y) operator!= const FloatVal & x const FloatVal & y Comparison operator. bool bool operator!= (const FloatVal &x, const FloatNum &y) operator!= const FloatVal & x const FloatNum & y Comparison operator. bool bool operator!= (const FloatNum &x, const FloatVal &y) operator!= const FloatNum & x const FloatVal & y Comparison operator. class Char class Traits std::basic_ostream< Char, Traits > & std::basic_ostream< Char, Traits > & operator<< (std::basic_ostream< Char, Traits > &os, const FloatVal &x) operator<< std::basic_ostream< Char, Traits > & os const FloatVal & x Print float value x. FloatVal FloatVal abs (const FloatVal &x) abs const FloatVal & x Return absolute value of x. FloatVal FloatVal sqrt (const FloatVal &x) sqrt const FloatVal & x Return square root of x. FloatVal FloatVal sqr (const FloatVal &x) sqr const FloatVal & x Return square of x. FloatVal FloatVal pow (const FloatVal &x, int n) pow const FloatVal & x int n Return n -th power of x. FloatVal FloatVal nroot (const FloatVal &x, int n) nroot const FloatVal & x int n Return n -th root of x. FloatVal FloatVal max (const FloatVal &x, const FloatVal &y) max const FloatVal & x const FloatVal & y Return maximum of x and y. FloatVal FloatVal max (const FloatVal &x, const FloatNum &y) max const FloatVal & x const FloatNum & y Return maximum of x and y. FloatVal FloatVal max (const FloatNum &x, const FloatVal &y) max const FloatNum & x const FloatVal & y Return maximum of x and y. FloatVal FloatVal min (const FloatVal &x, const FloatVal &y) min const FloatVal & x const FloatVal & y Return minimum of x and y. FloatVal FloatVal min (const FloatVal &x, const FloatNum &y) min const FloatVal & x const FloatNum & y Return minimum of x and y. FloatVal FloatVal min (const FloatNum &x, const FloatVal &y) min const FloatNum & x const FloatVal & y Return minimum of x and y. Float value type. x Gecode::FloatValabs Gecode::FloatValabs Gecode::FloatValassign Gecode::FloatValFloat::hull Gecode::FloatValFloat::hull Gecode::FloatValFloat::hull Gecode::FloatValFloat::hull Gecode::FloatValFloat::intersect Gecode::FloatValFloat::overlap Gecode::FloatValFloat::proper_subset Gecode::FloatValFloat::subset Gecode::FloatValFloatVal Gecode::FloatValFloatVal Gecode::FloatValFloatVal Gecode::FloatValFloatVal Gecode::FloatValFloatVal Gecode::FloatValFloatValImpType Gecode::FloatValhull Gecode::FloatValhull Gecode::FloatValhull Gecode::FloatValhull Gecode::FloatValhull Gecode::FloatValin Gecode::FloatValintersect Gecode::FloatValmax Gecode::FloatValmax Gecode::FloatValmax Gecode::FloatValmax Gecode::FloatValmax Gecode::FloatValmax Gecode::FloatValmax Gecode::FloatValmed Gecode::FloatValmin Gecode::FloatValmin Gecode::FloatValmin Gecode::FloatValmin Gecode::FloatValmin Gecode::FloatValmin Gecode::FloatValmin Gecode::FloatValnroot Gecode::FloatValnroot Gecode::FloatValoperator!= Gecode::FloatValoperator!= Gecode::FloatValoperator!= Gecode::FloatValoperator!= Gecode::FloatValoperator!= Gecode::FloatValoperator!= Gecode::FloatValoperator* Gecode::FloatValoperator* Gecode::FloatValoperator* Gecode::FloatValoperator* Gecode::FloatValoperator* Gecode::FloatValoperator* Gecode::FloatValoperator*= Gecode::FloatValoperator*= Gecode::FloatValoperator+ Gecode::FloatValoperator+ Gecode::FloatValoperator+ Gecode::FloatValoperator+ Gecode::FloatValoperator+ Gecode::FloatValoperator+ Gecode::FloatValoperator+ Gecode::FloatValoperator+ Gecode::FloatValoperator+= Gecode::FloatValoperator+= Gecode::FloatValoperator- Gecode::FloatValoperator- Gecode::FloatValoperator- Gecode::FloatValoperator- Gecode::FloatValoperator- Gecode::FloatValoperator- Gecode::FloatValoperator- Gecode::FloatValoperator- Gecode::FloatValoperator-= Gecode::FloatValoperator-= Gecode::FloatValoperator/ Gecode::FloatValoperator/ Gecode::FloatValoperator/ Gecode::FloatValoperator/ Gecode::FloatValoperator/ Gecode::FloatValoperator/ Gecode::FloatValoperator/= Gecode::FloatValoperator/= Gecode::FloatValoperator< Gecode::FloatValoperator< Gecode::FloatValoperator< Gecode::FloatValoperator< Gecode::FloatValoperator< Gecode::FloatValoperator< Gecode::FloatValoperator<< Gecode::FloatValoperator<< Gecode::FloatValoperator<= Gecode::FloatValoperator<= Gecode::FloatValoperator<= Gecode::FloatValoperator<= Gecode::FloatValoperator<= Gecode::FloatValoperator<= Gecode::FloatValoperator= Gecode::FloatValoperator= Gecode::FloatValoperator== Gecode::FloatValoperator== Gecode::FloatValoperator== Gecode::FloatValoperator== Gecode::FloatValoperator== Gecode::FloatValoperator== Gecode::FloatValoperator> Gecode::FloatValoperator> Gecode::FloatValoperator> Gecode::FloatValoperator> Gecode::FloatValoperator> Gecode::FloatValoperator> Gecode::FloatValoperator>= Gecode::FloatValoperator>= Gecode::FloatValoperator>= Gecode::FloatValoperator>= Gecode::FloatValoperator>= Gecode::FloatValoperator>= Gecode::FloatValoverlap Gecode::FloatValP Gecode::FloatValpi Gecode::FloatValpi_half Gecode::FloatValpi_twice Gecode::FloatValpow Gecode::FloatValpow Gecode::FloatValproper_subset Gecode::FloatValR Gecode::FloatValsingleton Gecode::FloatValsize Gecode::FloatValsqr Gecode::FloatValsqr Gecode::FloatValsqrt Gecode::FloatValsqrt Gecode::FloatValsubset Gecode::FloatValtight Gecode::FloatValx Gecode::FloatValzero_in