Generated on for Gecode by doxygen 1.15.0
Test::Float::Arithmetic::PositiveNRootBounds Class Reference

Regression test for outward positive even-root bounds. More...

Classes

class  RootSpace
 Space exercising the Pow and NthRoot propagators. More...
class  NRootBoundSpace
 Space exposing the propagated NthRoot upper bound. More...

Public Member Functions

 PositiveNRootBounds (void)
 Create and register test.
virtual bool run (void)
 Run test under every supported IEEE-754 rounding mode.
Public Member Functions inherited from Test::Base
 Base (std::string s)
 Create and register test with name s.
const std::string & name (void) const
 Return name of test.
Basenext (void) const
 Return next test.
void next (Base *n)
 Set next test.
bool fixpoint (void)
 Throw a coin whether to compute a fixpoint.
virtual ~Base (void)
 Destructor.

Protected Member Functions

bool check (Gecode::FloatNum hi, Gecode::FloatNum witness, int n, int mode, bool usePow) const
 Check that a known feasible boundary value is not removed.
bool checkBound (Gecode::FloatNum hi, Gecode::FloatNum rejected, int n, int mode) const
 Check that propagation returns a genuinely outward upper bound.

Additional Inherited Members

Static Public Member Functions inherited from Test::Base
static void sort (void)
 Sort tests alphabetically.
static Basetests (void)
 Return all tests.
static bool fixpoint (Gecode::Support::RandomGenerator &rand)
 Throw a coin whether to compute a fixpoint.
static std::string str (bool b)
 Map bool to string.
static std::string str (int i)
 Map integer to string.
static std::string str (const Gecode::IntArgs &i)
 Map integer array to string.
Gecode::Support::RandomGenerator _rand
 Random number generator.

Detailed Description

Regression test for outward positive even-root bounds.

Definition at line 56 of file arithmetic.cpp.

Constructor & Destructor Documentation

◆ PositiveNRootBounds()

Test::Float::Arithmetic::PositiveNRootBounds::PositiveNRootBounds ( void )
inline

Create and register test.

Definition at line 136 of file arithmetic.cpp.

Member Function Documentation

◆ check()

bool Test::Float::Arithmetic::PositiveNRootBounds::check ( Gecode::FloatNum hi,
Gecode::FloatNum witness,
int n,
int mode,
bool usePow ) const
inlineprotected

Check that a known feasible boundary value is not removed.

Definition at line 109 of file arithmetic.cpp.

◆ checkBound()

bool Test::Float::Arithmetic::PositiveNRootBounds::checkBound ( Gecode::FloatNum hi,
Gecode::FloatNum rejected,
int n,
int mode ) const
inlineprotected

Check that propagation returns a genuinely outward upper bound.

Definition at line 122 of file arithmetic.cpp.

◆ run()

virtual bool Test::Float::Arithmetic::PositiveNRootBounds::run ( void )
inlinevirtual

Run test under every supported IEEE-754 rounding mode.

Implements Test::Base.

Definition at line 139 of file arithmetic.cpp.


The documentation for this class was generated from the following file: