/third_party/boost/libs/multiprecision/test/ |
D | test_atan.cpp | 151 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 …]
|
D | test_cos.cpp | 193 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()
|
D | test_sin.cpp | 193 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()
|
D | test.hpp | 40 …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" \
|
D | test_sinh.cpp | 125 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()
|
D | test_log.cpp | 177 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()
|
D | test_exp.cpp | 125 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()
|
D | test_cosh.cpp | 125 T e = relative_error(val, T(data[k])); in test() 133 e = relative_error(val, T(data[k])); in test()
|
D | test_asin.cpp | 80 T e = relative_error(val, exact_data[k][1]); in test() 85 e = relative_error(val, T(-exact_data[k][1])); in test()
|
D | test_tan.cpp | 591 T e = relative_error(val, T(data[k][1])); in test() 598 e = relative_error(val, T(-T(data[k][1]))); in test()
|
D | test_pow.cpp | 782 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/ |
D | betweenness_centrality_test.cpp | 142 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/ |
D | eigen_example.cpp | 33 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/ |
D | ooura_fourier_integrals_cosine_example.cpp | 40 auto [result, relative_error] = integrator.integrate(f, omega); in main() 41 …std::cout << "Integral = " << result << ", relative error estimate " << relative_error << std::end… in main()
|
D | ooura_fourier_integrals_multiprecision_example.cpp | 51 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/ |
D | asinh_test.hpp | 38 T relative_error = absolute_error*cosh(x); in asinh_error_evaluator() local 39 T scaled_error = relative_error/epsilon; in asinh_error_evaluator()
|
D | acosh_test.hpp | 38 T relative_error = absolute_error*abs(sinh(x)); in acosh_error_evaluator() local 39 T scaled_error = relative_error/epsilon; in acosh_error_evaluator()
|
D | atanh_test.hpp | 37 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()
|
D | test_autodiff_4.cpp | 80 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/ |
D | test.hpp | 63 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/ |
D | main.cpp | 280 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/ |
D | tools_test_inc_test.cpp | 22 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/ |
D | esextcGPUShader5FmaAccuracy.hpp | 133 …lateRelativeError(glw::GLfloat result, glw::GLfloat expected_result, glw::GLfloat& relative_error);
|
D | esextcGPUShader5FmaAccuracy.cpp | 356 glw::GLfloat& relative_error) in calculateRelativeError() argument 360 relative_error = delta / expected_result; in calculateRelativeError()
|
/third_party/boost/libs/math/tools/ |
D | mp_t.hpp | 35 inline mp_t relative_error(mp_t a, mp_t b) in relative_error() function
|