Home
last modified time | relevance | path

Searched refs:safe_div (Results 1 – 2 of 2) sorted by relevance

/third_party/boost/libs/hana/example/
Dmonadic_fold_right.cpp19 BOOST_HANA_CONSTEXPR_LAMBDA auto safe_div = [](auto x, auto y) { in main() local
31 hana::tuple_c<int, 1000, 8, 4>, hana::int_c<2>, safe_div in main()
39 hana::tuple_c<int, 1000, 8, 4>, hana::int_c<0>, safe_div in main()
48 hana::tuple_c<int, 1000, 8, 4, 2>, safe_div in main()
56 hana::tuple_c<int, 1000, 8, 4, 0>, safe_div in main()
/third_party/boost/boost/math/tools/
Dtoms748_solve.hpp152 inline T safe_div(T num, T denom, T r) in safe_div() function
208 T B = safe_div(T(fb - fa), T(b - a), tools::max_value<T>()); in quadratic_interpolate()
209 T A = safe_div(T(fd - fb), T(d - b), tools::max_value<T>()); in quadratic_interpolate()
210 A = safe_div(T(A - B), T(d - a), T(0)); in quadratic_interpolate()
235 c -= safe_div(T(fa+(B+A*(c-b))*(c-a)), T(B + A * (2 * c - a - b)), T(1 + c - a)); in quadratic_interpolate()