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

Function operator -

gecode/minimodel/float-expr.cpp:448–454  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

446 }
447
448 LinFloatExpr
449 operator -(const FloatVal& c, const FloatVar& x) {
450 if (x.assigned() && Float::Limits::valid(c-x.val()))
451 return LinFloatExpr(c-x.val());
452 else
453 return LinFloatExpr(x,LinFloatExpr::NT_SUB,c);
454 }
455 LinFloatExpr
456 operator -(const FloatVal& c, const LinFloatExpr& e) {
457 return LinFloatExpr(e,LinFloatExpr::NT_SUB,c);

Callers

nothing calls this directly

Calls 4

validFunction · 0.85
LinFloatExprClass · 0.85
assignedMethod · 0.45
valMethod · 0.45

Tested by

no test coverage detected