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

Function division_part1

gecode/third-party/boost/numeric/interval/arith2.hpp:69–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67namespace interval_lib {
68
69template<class T, class Policies> inline
70interval<T, Policies> division_part1(const interval<T, Policies>& x,
71 const interval<T, Policies>& y, bool& b)
72{
73 typedef interval<T, Policies> I;
74 b = false;
75 if (detail::test_input(x, y))
76 return I::empty();
77 if (zero_in(y))
78 if (!user::is_zero(y.lower()))
79 if (!user::is_zero(y.upper()))
80 return detail::div_zero_part1(x, y, b);
81 else
82 return detail::div_negative(x, y.lower());
83 else
84 if (!user::is_zero(y.upper()))
85 return detail::div_positive(x, y.upper());
86 else
87 return I::empty();
88 else
89 return detail::div_non_zero(x, y);
90}
91
92template<class T, class Policies> inline
93interval<T, Policies> division_part2(const interval<T, Policies>& x,

Callers

nothing calls this directly

Calls 10

test_inputFunction · 0.85
zero_inFunction · 0.85
is_zeroFunction · 0.85
div_zero_part1Function · 0.85
div_negativeFunction · 0.85
div_positiveFunction · 0.85
div_non_zeroFunction · 0.85
emptyFunction · 0.70
lowerMethod · 0.45
upperMethod · 0.45

Tested by

no test coverage detected