MCPcopy Create free account
hub / github.com/Gecode/gecode / operator -

Function operator -

gecode/float/val.hpp:167–172  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

165 return FloatVal(+x.x);
166 }
167 forceinline FloatVal
168 operator -(const FloatVal& x) {
169 FloatNum mmi = (x.min() == 0.0) ? 0.0 : -x.min();
170 FloatNum mma = (x.max() == 0.0) ? 0.0 :-x.max();
171 return FloatVal(mma,mmi);
172 }
173 forceinline FloatVal
174 operator +(const FloatVal& x, const FloatVal& y) {
175 return FloatVal(x.x+y.x);

Callers

nothing calls this directly

Calls 3

FloatValClass · 0.85
minMethod · 0.45
maxMethod · 0.45

Tested by

no test coverage detected