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

Function operator *

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

Source from the content-addressed store, hash-verified

508 }
509
510 LinFloatExpr
511 operator *(const FloatVal& a, const FloatVar& x) {
512 if (a == 0)
513 return LinFloatExpr(0.0);
514 else if (x.assigned() &&
515 Float::Limits::valid(a*x.val()))
516 return LinFloatExpr(a*x.val());
517 else
518 return LinFloatExpr(x,a);
519 }
520 LinFloatExpr
521 operator *(const FloatVar& x, const FloatVal& a) {
522 if (a == 0)

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected