Home
last modified time | relevance | path

Searched refs:rounding_error (Results 1 – 20 of 20) sorted by relevance

/third_party/boost/libs/math/test/
Dtest_round.cpp225 BOOST_MATH_CHECK_THROW(iround(static_cast<T>(1e20)), boost::math::rounding_error); in test_round()
226 BOOST_MATH_CHECK_THROW(iround(static_cast<T>(-1e20)), boost::math::rounding_error); in test_round()
227 BOOST_MATH_CHECK_THROW(lround(static_cast<T>(1e20)), boost::math::rounding_error); in test_round()
228 BOOST_MATH_CHECK_THROW(lround(static_cast<T>(-1e20)), boost::math::rounding_error); in test_round()
230 BOOST_MATH_CHECK_THROW(llround(static_cast<T>(1e20)), boost::math::rounding_error); in test_round()
231 BOOST_MATH_CHECK_THROW(llround(static_cast<T>(-1e20)), boost::math::rounding_error); in test_round()
235 … BOOST_MATH_CHECK_THROW(round(std::numeric_limits<T>::infinity()), boost::math::rounding_error); in test_round()
236 … BOOST_MATH_CHECK_THROW(iround(std::numeric_limits<T>::infinity()), boost::math::rounding_error); in test_round()
237 … BOOST_MATH_CHECK_THROW(iround(-std::numeric_limits<T>::infinity()), boost::math::rounding_error); in test_round()
238 … BOOST_MATH_CHECK_THROW(lround(std::numeric_limits<T>::infinity()), boost::math::rounding_error); in test_round()
[all …]
Dtest_policy_9.cpp27 …denorm_error<user_error>(), evaluation_error<user_error>(), rounding_error<user_error>(), indeterm… in test()
40 …denorm_error<ignore_error>(), evaluation_error<ignore_error>(), rounding_error<ignore_error>(), in… in test()
80 …denorm_error<user_error>(), evaluation_error<user_error>(), rounding_error<user_error>(), indeterm… in test()
Dtest_hankel.cpp94 boost::math::policies::rounding_error<boost::math::policies::throw_on_error>,
106 boost::math::policies::rounding_error<boost::math::policies::errno_on_error>,
118 boost::math::policies::rounding_error<boost::math::policies::ignore_error>,
/third_party/boost/libs/multiprecision/test/
Dtest_round.cpp332 …ST_CHECK_THROW(result = static_cast<T>(iround(static_cast<T>(1e20))), boost::math::rounding_error); in test()
333 …T_CHECK_THROW(result = static_cast<T>(iround(static_cast<T>(-1e20))), boost::math::rounding_error); in test()
334 …ST_CHECK_THROW(result = static_cast<T>(lround(static_cast<T>(1e20))), boost::math::rounding_error); in test()
335 …T_CHECK_THROW(result = static_cast<T>(lround(static_cast<T>(-1e20))), boost::math::rounding_error); in test()
337 …T_CHECK_THROW(result = static_cast<T>(llround(static_cast<T>(1e20))), boost::math::rounding_error); in test()
338 …_CHECK_THROW(result = static_cast<T>(llround(static_cast<T>(-1e20))), boost::math::rounding_error); in test()
343 …(result = static_cast<T>(iround(std::numeric_limits<T>::infinity())), boost::math::rounding_error); in test()
344 …result = static_cast<T>(iround(-std::numeric_limits<T>::infinity())), boost::math::rounding_error); in test()
345 …(result = static_cast<T>(lround(std::numeric_limits<T>::infinity())), boost::math::rounding_error); in test()
346 …result = static_cast<T>(lround(-std::numeric_limits<T>::infinity())), boost::math::rounding_error); in test()
[all …]
/third_party/boost/libs/math/src/tr1/
Dc_policy.hpp17 rounding_error<errno_on_error>,
27 typedef rounding_error<errno_on_error> rounding_error_type;
48 rounding_error<errno_on_error>,
60 typedef rounding_error<errno_on_error> rounding_error_type;
76 …>, overflow_error<errno_on_error>, evaluation_error<errno_on_error>, rounding_error<errno_on_error…
89 …>, overflow_error<errno_on_error>, evaluation_error<errno_on_error>, rounding_error<errno_on_error…
93 …>, overflow_error<errno_on_error>, evaluation_error<errno_on_error>, rounding_error<errno_on_error…
106 …>, overflow_error<errno_on_error>, evaluation_error<errno_on_error>, rounding_error<errno_on_error…
118 using boost::math::policies::rounding_error;
126 rounding_error<errno_on_error>
/third_party/boost/libs/math/doc/fp_utilities/
Drounding_func.qbk39 default this throws an instance of `boost::math::rounding_error`.
79 default this throws an instance of `boost::math::rounding_error`.
117 default this throws an instance of `boost::math::rounding_error`.
/third_party/boost/boost/math/policies/
Derror_handling.hpp45 class rounding_error : public std::runtime_error class
48 rounding_error(const std::string& s) : std::runtime_error(s){} in rounding_error() function in boost::math::rounding_error
498 … const ::boost::math::policies::rounding_error< ::boost::math::policies::throw_on_error>&) in raise_rounding_error()
500 raise_error<boost::math::rounding_error, T>(function, message, val); in raise_rounding_error()
511 …const ::boost::math::policies::rounding_error< ::boost::math::policies::ignore_error>&) BOOST_MAT… in raise_rounding_error()
525 …const ::boost::math::policies::rounding_error< ::boost::math::policies::errno_on_error>&) BOOST_M… in raise_rounding_error()
540 …const ::boost::math::policies::rounding_error< ::boost::math::policies::errno_on_error>&) BOOST_M… in raise_rounding_error()
554 const ::boost::math::policies::rounding_error< ::boost::math::policies::user_error>&) in raise_rounding_error()
Dpolicy.hpp211 BOOST_MATH_META_INT(error_policy_type, rounding_error, BOOST_MATH_ROUNDING_ERROR_POLICY)
431 …typedef typename detail::find_arg<arg_list, is_rounding_error<mpl::_1>, rounding_error<> >::type r…
475 typedef rounding_error<> rounding_error_type;
500 typedef rounding_error<> rounding_error_type;
/third_party/boost/boost/math/bindings/
Dmpfr.hpp121 …name boost::math::policies::normalise<Policy, boost::math::policies::rounding_error< boost::math::… in iround()
132 …name boost::math::policies::normalise<Policy, boost::math::policies::rounding_error< boost::math::… in lround()
143 …name boost::math::policies::normalise<Policy, boost::math::policies::rounding_error< boost::math::… in llround()
154 …name boost::math::policies::normalise<Policy, boost::math::policies::rounding_error< boost::math::… in itrunc()
165 …name boost::math::policies::normalise<Policy, boost::math::policies::rounding_error< boost::math::… in ltrunc()
176 …name boost::math::policies::normalise<Policy, boost::math::policies::rounding_error< boost::math::… in lltrunc()
/third_party/boost/boost/math/distributions/
Dhypergeometric.hpp139 …unsigned u = itrunc(r, typename policies::normalise<Policy, policies::rounding_error<policies::ign… in pdf()
168 …unsigned u = itrunc(r, typename policies::normalise<Policy, policies::rounding_error<policies::ign… in cdf()
197 …unsigned u = itrunc(r, typename policies::normalise<Policy, policies::rounding_error<policies::ign… in cdf()
/third_party/boost/boost/math/special_functions/
Dhypergeometric_pFq.hpp146 catch (const boost::math::rounding_error&) in hypergeometric_pFq_precision()
Dzeta.hpp966 catch(const boost::math::rounding_error&){} // Just fall through, s is too large to round in zeta_imp()
/third_party/boost/libs/math/include_private/boost/math/tools/
Dtest.hpp280 void test_check_throw(Val v, boost::math::rounding_error const* e) in test_check_throw()
/third_party/boost/libs/math/doc/policies/
Dpolicy.qbk183 [boost::math::policies::rounding_error<['action]>]
188 Defaults to `boost::math::policies::rounding_error<throw_on_error>`
190 When the action is ['throw_on_error] then throws `boost::math::rounding_error`]]
797 `boost::math::policies::rounding_error<>` with the template argument to
798 `rounding_error` one of the `error_policy_type` enumerated values.
Dpolicy_tutorial.qbk57 [[Rounding Error][Throws a `boost::math::rounding_error` exception.]]
/third_party/boost/libs/math/doc/overview/
Derror_handling.qbk114 [[throw_on_error][Throws `boost::math::rounding_error`]]
349 [heading:rounding_error Rounding Errors]
364 The default behaviour of this function is to throw a `boost::math::rounding_error`.
/third_party/boost/boost/math/special_functions/detail/
Dt_distribution_inv.hpp404 …ound(T(df / -0.654f), typename policies::normalise<Policy, policies::rounding_error<policies::igno… in inverse_students_t()
/third_party/boost/boost/multiprecision/detail/functions/
Dpow.hpp772 catch (const boost::math::rounding_error&)
/third_party/boost/libs/math/doc/
Dmath.qbk112 [def __rounding_error [link math_toolkit.error_handling.rounding_error rounding_error]]
/third_party/boost/boost/multiprecision/detail/
Ddefault_ops.hpp2193 ::boost::math::policies::rounding_error< ::boost::math::policies::errno_on_error> >