MCPcopy Create free account
hub / github.com/Gecode/gecode / tight

Method tight

gecode/float/val.hpp:86–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84 }
85
86 forceinline bool
87 FloatVal::tight(void) const {
88 return (gecode_boost::numeric::singleton(x) ||
89 (nextafter(x.lower(),x.upper()) == x.upper()));
90 }
91 forceinline bool
92 FloatVal::singleton(void) const {
93 return gecode_boost::numeric::singleton(x);

Callers 1

assignedMethod · 0.80

Calls 4

nextafterFunction · 0.85
singletonFunction · 0.50
lowerMethod · 0.45
upperMethod · 0.45

Tested by

no test coverage detected