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

Function any

gecode/float/arithmetic/mult.hpp:52–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50 /// Test whether \a x is neither positive nor negative
51 template<class View>
52 forceinline bool
53 any(const View& x) {
54 return (x.min() <= 0.0) && (x.max() >= 0.0);
55 }
56
57 /*
58 * Propagator for x * y = x

Callers 1

propagateMethod · 0.70

Calls 2

minMethod · 0.45
maxMethod · 0.45

Tested by

no test coverage detected