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

Function log

gecode/third-party/boost/numeric/interval/transc.hpp:37–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35}
36
37template<class T, class Policies> inline
38interval<T, Policies> log(const interval<T, Policies>& x)
39{
40 typedef interval<T, Policies> I;
41 if (interval_lib::detail::test_input(x) ||
42 !interval_lib::user::is_pos(x.upper()))
43 return I::empty();
44 typename Policies::rounding rnd;
45 typedef typename Policies::checking checking;
46 T l = !interval_lib::user::is_pos(x.lower())
47 ? checking::neg_inf() : rnd.log_down(x.lower());
48 return I(l, rnd.log_up(x.upper()), true);
49}
50
51template<class T, class Policies> inline
52interval<T, Policies> cos(const interval<T, Policies>& x)

Callers

nothing calls this directly

Calls 5

test_inputFunction · 0.85
is_posFunction · 0.85
emptyFunction · 0.70
upperMethod · 0.45
lowerMethod · 0.45

Tested by

no test coverage detected