Home
last modified time | relevance | path

Searched refs:relative_error (Results 1 – 25 of 36) sorted by relevance

12

/third_party/boost/libs/multiprecision/test/
Dtest_atan.cpp151 T e = relative_error(val, T(data[k])); in test()
156 e = relative_error(val, T(-T(data[k]))); in test()
176 T e = relative_error(val, atan2_def(arg, T(1))); in test()
183 e = relative_error(val, atan2_def(T(-arg), T(1))); in test()
190 e = relative_error(val, atan2_def(arg, T(-1))); in test()
197 e = relative_error(val, atan2_def(T(-arg), T(-1))); in test()
208 … err = relative_error(T(atan2(T(0), T(1))), atan2_def(T(0), T(1))).template convert_to<unsigned>(); in test()
214 …err = relative_error(T(atan2(T(0), T(-1))), atan2_def(T(0), T(-1))).template convert_to<unsigned>(… in test()
222 err = relative_error(T(atan2(T(1), T(0))), T(pi / 2)).template convert_to<unsigned>(); in test()
226 err = relative_error(T(atan2(T(-1), T(0))), T(pi / -2)).template convert_to<unsigned>(); in test()
[all …]
Dtest_cos.cpp193 T e = relative_error(val, T(data[k])); in test()
198 e = relative_error(val, T(data[k])); in test()
268 T e = relative_error(val, T(near_one[k])); in test()
273 e = relative_error(val, T(near_one[k])); in test()
302 T e = relative_error(val, exact_data[k][1]); in test()
307 e = relative_error(val, exact_data[k][1]); in test()
327 T e = relative_error(val, sincos[k][2]); in test()
Dtest_sin.cpp193 T e = relative_error(val, T(data[k])); in test()
198 e = relative_error(val, T(-T(data[k]))); in test()
266 T e = relative_error(val, T(small_data[k])); in test()
273 e = relative_error(val, T(-T(small_data[k]))); in test()
299 T e = relative_error(val, exact_data[k][1]); in test()
312 T e = relative_error(val, sincos[k][1]); in test()
Dtest.hpp40 …category<T>::value == boost::multiprecision::number_kind_integer, T>::type relative_error(T a, T b) in relative_error() function
46 …_integer) || boost::multiprecision::is_interval_number<T>::value, T>::type relative_error(T a, T b) in relative_error() function
91 relative_error(T a, U b) in relative_error() function
94 return relative_error<cast_type>(static_cast<cast_type>(a), static_cast<cast_type>(b)); in relative_error()
98 …:enable_if_c<boost::multiprecision::is_interval_number<T>::value, T>::type relative_error(T a, T b) in relative_error() function
102 return relative_error<typename boost::multiprecision::component_type<T>::type>(am, bm); in relative_error()
194 if (relative_error(x, y) > tol) \
201 << "Relative error was: " << relative_error(x, y) << "eps\n" \
Dtest_sinh.cpp125 T e = relative_error(val, T(data[k])); in test()
130 e = relative_error(val, T(-T(data[k]))); in test()
195 T e = relative_error(val, T(small_values[k])); in test()
202 e = relative_error(val, T(-T(small_values[k]))); in test()
Dtest_log.cpp177 T e = relative_error(val, T(data[k])); in test()
183 e = relative_error(val, T(-T(data[k]))); in test()
191 e = relative_error(val, T(T(data[k]) / logten)); in test()
197 e = relative_error(val, T(-T(data[k]) / logten)); in test()
Dtest_exp.cpp125 T e = relative_error(val, T(data[k])); in test()
132 e = relative_error(val, T(1 / T(data[k]))); in test()
168 T e = relative_error(val, exact_data[k][1]); in test()
175 e = relative_error(val, T(1 / exact_data[k][1])); in test()
Dtest_cosh.cpp125 T e = relative_error(val, T(data[k])); in test()
133 e = relative_error(val, T(data[k])); in test()
Dtest_asin.cpp80 T e = relative_error(val, exact_data[k][1]); in test()
85 e = relative_error(val, T(-exact_data[k][1])); in test()
Dtest_tan.cpp591 T e = relative_error(val, T(data[k][1])); in test()
598 e = relative_error(val, T(-T(data[k][1]))); in test()
Dtest_pow.cpp782 T e = relative_error(val, T(data[k][2])); in test()
789 e = relative_error(val, T(1 / T(data[k][2]))); in test()
/third_party/boost/libs/graph/test/
Dbetweenness_centrality_test.cpp142 double relative_error = correct_centrality[v] == 0.0 in run_unweighted_test() local
145 if (relative_error < 0) in run_unweighted_test()
146 relative_error = -relative_error; in run_unweighted_test()
147 BOOST_TEST(relative_error < error_tolerance); in run_unweighted_test()
157 double relative_error = correct_edge_centrality[e] == 0.0 in run_unweighted_test() local
161 if (relative_error < 0) in run_unweighted_test()
162 relative_error = -relative_error; in run_unweighted_test()
163 BOOST_TEST(relative_error < error_tolerance); in run_unweighted_test()
165 if (relative_error >= error_tolerance) in run_unweighted_test()
428 double relative_error = centrality[v] == 0.0 in random_unweighted_test() local
[all …]
/third_party/boost/libs/multiprecision/example/
Deigen_example.cpp33 complex_type::value_type relative_error = (A*x - b).norm() / b.norm(); in main() local
34 std::cout << "The relative error is: " << relative_error << std::endl; in main()
/third_party/boost/libs/math/example/
Dooura_fourier_integrals_cosine_example.cpp40 auto [result, relative_error] = integrator.integrate(f, omega); in main()
41 …std::cout << "Integral = " << result << ", relative error estimate " << relative_error << std::end… in main()
Dooura_fourier_integrals_multiprecision_example.cpp51 auto [result, relative_error] = integrator.integrate(f, omega); in main()
56 …std::cout << "Integral = " << result << ", relative error estimate " << relative_error << std::end… in main()
/third_party/boost/libs/math/test/
Dasinh_test.hpp38 T relative_error = absolute_error*cosh(x); in asinh_error_evaluator() local
39 T scaled_error = relative_error/epsilon; in asinh_error_evaluator()
Dacosh_test.hpp38 T relative_error = absolute_error*abs(sinh(x)); in acosh_error_evaluator() local
39 T scaled_error = relative_error/epsilon; in acosh_error_evaluator()
Datanh_test.hpp37 T relative_error = absolute_error/(cosh(x)*cosh(x)); in atanh_error_evaluator() local
38 T scaled_error = relative_error/epsilon; in atanh_error_evaluator()
Dtest_autodiff_4.cpp80 const T relative_error = in BOOST_AUTO_TEST_CASE_TEMPLATE() local
82 BOOST_CHECK_LT(relative_error, eps); in BOOST_AUTO_TEST_CASE_TEMPLATE()
/third_party/boost/libs/math/include_private/boost/math/tools/
Dtest.hpp63 T relative_error(T a, T b) in relative_error() function
147 value_type err = relative_error(point, expected); in test()
220 value_type err = relative_error(point, expected); in test_hetero()
/third_party/boost/libs/math/minimax/
Dmain.cpp280 err = boost::math::tools::relative_error(test_result, true_result); in do_test()
281 cheb_err = boost::math::tools::relative_error(cheb_result, true_result); in do_test()
307 err = boost::math::tools::relative_error(test_result, true_result); in do_test()
308 cheb_err = boost::math::tools::relative_error(cheb_result, true_result); in do_test()
417 err = boost::math::tools::relative_error(test_result, true_result); in do_test_n()
418 cheb_err = boost::math::tools::relative_error(cheb_result, true_result); in do_test_n()
/third_party/boost/libs/math/test/compile_test/
Dtools_test_inc_test.cpp22 check_result<float>(boost::math::tools::relative_error<float>(f, f)); in compile_and_link_test()
/third_party/vk-gl-cts/external/openglcts/modules/glesext/gpu_shader5/
DesextcGPUShader5FmaAccuracy.hpp133 …lateRelativeError(glw::GLfloat result, glw::GLfloat expected_result, glw::GLfloat& relative_error);
DesextcGPUShader5FmaAccuracy.cpp356 glw::GLfloat& relative_error) in calculateRelativeError() argument
360 relative_error = delta / expected_result; in calculateRelativeError()
/third_party/boost/libs/math/tools/
Dmp_t.hpp35 inline mp_t relative_error(mp_t a, mp_t b) in relative_error() function

12