Generated on Mon Feb 8 2021 00:00:00 for Gecode by doxygen 1.8.20

Numerical limits for floating point variables. More...

Functions

bool valid (const FloatVal &n)
 Return whether float n is a valid number. More...
 
void check (const FloatVal &n, const char *l)
 Check whether float n is a valid number, otherwise throw out of limits exception with information l. More...
 

Variables

const FloatNum max = std::numeric_limits<FloatNum>::max()
 Largest allowed float value. More...
 
const FloatNum min = -max
 Smallest allowed float value. More...
 

Detailed Description

Numerical limits for floating point variables.

Function Documentation

◆ valid()

bool Gecode::Float::Limits::valid ( const FloatVal n)
inline

Return whether float n is a valid number.

Definition at line 39 of file limits.hpp.

◆ check()

void Gecode::Float::Limits::check ( const FloatVal n,
const char *  l 
)
inline

Check whether float n is a valid number, otherwise throw out of limits exception with information l.

Definition at line 44 of file limits.hpp.

Variable Documentation

◆ max

const FloatNum Gecode::Float::Limits::max = std::numeric_limits<FloatNum>::max()

Largest allowed float value.

Definition at line 844 of file float.hh.

◆ min

const FloatNum Gecode::Float::Limits::min = -max

Smallest allowed float value.

Definition at line 846 of file float.hh.