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

Method min

gecode/int/arithmetic/nroot.hpp:278–280  ·  view source on GitHub ↗

Perform mapping of minimum

Source from the content-addressed store, hash-verified

276 forceinline RangesMapNroot(const Ops& o) : ops(o) {}
277 /// Perform mapping of minimum
278 forceinline int min(int x) const {
279 return (x < 0) ? -ops.cnroot(-x) : ops.fnroot(x);
280 }
281 /// Perform mapping of maximum
282 forceinline int max(int x) const {
283 return (x < 0) ? -ops.cnroot(-x) : ops.fnroot(x);

Callers

nothing calls this directly

Calls 2

cnrootMethod · 0.80
fnrootMethod · 0.80

Tested by

no test coverage detected