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

Function operator/

gecode/third-party/boost/numeric/interval/arith.hpp:247–266  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

245{ return y * x; }
246
247template<class T, class Policies> inline
248interval<T, Policies> operator/(const interval<T, Policies>& x,
249 const interval<T, Policies>& y)
250{
251 if (interval_lib::detail::test_input(x, y))
252 return interval<T, Policies>::empty();
253 if (zero_in(y))
254 if (!interval_lib::user::is_zero(y.lower()))
255 if (!interval_lib::user::is_zero(y.upper()))
256 return interval_lib::detail::div_zero(x);
257 else
258 return interval_lib::detail::div_negative(x, y.lower());
259 else
260 if (!interval_lib::user::is_zero(y.upper()))
261 return interval_lib::detail::div_positive(x, y.upper());
262 else
263 return interval<T, Policies>::empty();
264 else
265 return interval_lib::detail::div_non_zero(x, y);
266}
267
268template<class T, class Policies> inline
269interval<T, Policies> operator/(const T& x, const interval<T, Policies>& y)

Callers

nothing calls this directly

Calls 13

test_inputFunction · 0.85
zero_inFunction · 0.85
is_zeroFunction · 0.85
div_zeroFunction · 0.85
div_negativeFunction · 0.85
div_positiveFunction · 0.85
div_non_zeroFunction · 0.85
is_negFunction · 0.85
emptyFunction · 0.70
lowerMethod · 0.45
upperMethod · 0.45
div_downMethod · 0.45

Tested by

no test coverage detected