Home
last modified time | relevance | path

Searched refs:is_close (Results 1 – 6 of 6) sorted by relevance

/third_party/boost/libs/math/example/
Dfloat_comparison_example.cpp226 bool is_close = is_close_to(1.F, 1.F + epsilon, epsilon); // One epsilon apart is close enough. in main()
227 std::cout << "is_close_to(1.F, 1.F + epsilon, epsilon); is " << is_close << std::endl; // true in main()
229 is_close = is_close_to(1.F, 1.F + 2 * epsilon, epsilon); // Two epsilon apart isn't close enough. in main()
230 std::cout << "is_close_to(1.F, 1.F + epsilon, epsilon); is " << is_close << std::endl; // false in main()
Dbrent_minimise_example.cpp104 bool is_close(T expect, T got, T tolerance) in is_close() function
169 << is_close(static_cast<T>(1), r.first, uncertainty) << std::endl; in show_minima()
171 << is_close(static_cast<T>(0), r.second, uncertainty) << std::endl; in show_minima()
228 << uncertainty << ") is " << is_close(1., r.first, uncertainty) << std::endl; // true in main()
230 << uncertainty << ") is " << is_close(0., r.second, uncertainty) << std::endl; // true in main()
/third_party/ltp/testcases/kernel/syscalls/dup2/
Ddup203.c27 int is_close; member
52 if (tc->is_close) { in run()
/third_party/boost/libs/geometry/test/formulas/
Dtest_formula.hpp43 bool is_close = abs_result <= 30 * eps && abs_expected <= 30 * eps; in check_one() local
44 BOOST_CHECK_MESSAGE((is_close), in check_one()
/third_party/boost/libs/geometry/test/algorithms/
Ddensify.cpp139 bool is_close = (gr_len - max_distance) / (std::max)(gr_len, max_distance) < 0.0001; in check_result() local
140 BOOST_CHECK(gr_len <= max_distance || is_close); in check_result()
/third_party/boost/libs/math/doc/roots/
Dminima.qbk121 `is_close`, first checking `is_small` before checking `close_at_tolerance`,