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

Regression tests for multiplication through a zero endpoint. More...

Classes

class  MultSpace
 Space exposing multiplication propagation at the public API. More...

Public Member Functions

 MultZeroEndpoint (void)
 Create and register test.
virtual bool run (void)
 Run sign, symmetry, signed-zero, and zero-product cases.
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 xl, Gecode::FloatNum xu, Gecode::FloatNum yl, Gecode::FloatNum yu, Gecode::FloatNum zl, Gecode::FloatNum zu, Gecode::FloatNum expectedMin, Gecode::FloatNum expectedMax) const
 Check one endpoint-zero sign and magnitude contraction.
bool fuzz (void) const
 Exercise supported points across endpoint-zero sign combinations.

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 tests for multiplication through a zero endpoint.

Definition at line 401 of file arithmetic.cpp.

Constructor & Destructor Documentation

◆ MultZeroEndpoint()

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

Create and register test.

Definition at line 488 of file arithmetic.cpp.

Member Function Documentation

◆ check()

bool Test::Float::Arithmetic::MultZeroEndpoint::check ( Gecode::FloatNum xl,
Gecode::FloatNum xu,
Gecode::FloatNum yl,
Gecode::FloatNum yu,
Gecode::FloatNum zl,
Gecode::FloatNum zu,
Gecode::FloatNum expectedMin,
Gecode::FloatNum expectedMax ) const
inlineprotected

Check one endpoint-zero sign and magnitude contraction.

Definition at line 428 of file arithmetic.cpp.

◆ fuzz()

bool Test::Float::Arithmetic::MultZeroEndpoint::fuzz ( void ) const
inlineprotected

Exercise supported points across endpoint-zero sign combinations.

Definition at line 454 of file arithmetic.cpp.

◆ run()

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

Run sign, symmetry, signed-zero, and zero-product cases.

Implements Test::Base.

Definition at line 491 of file arithmetic.cpp.


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