Lines Matching refs:test_precision

236 template<typename T> inline typename NumTraits<T>::Real test_precision() { return NumTraits<T>::dum…  in test_precision()  function
237 template<> inline float test_precision<float>() { return 1e-3f; }
238 template<> inline double test_precision<double>() { return 1e-6; }
239 template<> inline float test_precision<std::complex<float> >() { return test_precision<float>(); }
240 template<> inline double test_precision<std::complex<double> >() { return test_precision<double>();…
241 template<> inline long double test_precision<long double>() { return 1e-6; }
244 { return internal::isApprox(a, b, test_precision<int>()); } in test_isApprox()
246 { return internal::isMuchSmallerThan(a, b, test_precision<int>()); } in test_isMuchSmallerThan()
248 { return internal::isApproxOrLessThan(a, b, test_precision<int>()); } in test_isApproxOrLessThan()
251 { return internal::isApprox(a, b, test_precision<float>()); } in test_isApprox()
253 { return internal::isMuchSmallerThan(a, b, test_precision<float>()); } in test_isMuchSmallerThan()
255 { return internal::isApproxOrLessThan(a, b, test_precision<float>()); } in test_isApproxOrLessThan()
257 { return internal::isApprox(a, b, test_precision<double>()); } in test_isApprox()
260 { return internal::isMuchSmallerThan(a, b, test_precision<double>()); } in test_isMuchSmallerThan()
262 { return internal::isApproxOrLessThan(a, b, test_precision<double>()); } in test_isApproxOrLessThan()
265 { return internal::isApprox(a, b, test_precision<std::complex<float> >()); } in test_isApprox()
267 { return internal::isMuchSmallerThan(a, b, test_precision<std::complex<float> >()); } in test_isMuchSmallerThan()
270 { return internal::isApprox(a, b, test_precision<std::complex<double> >()); } in test_isApprox()
272 { return internal::isMuchSmallerThan(a, b, test_precision<std::complex<double> >()); } in test_isMuchSmallerThan()
276 bool ret = internal::isApprox(a, b, test_precision<long double>()); in test_isApprox()
284 { return internal::isMuchSmallerThan(a, b, test_precision<long double>()); } in test_isMuchSmallerThan()
286 { return internal::isApproxOrLessThan(a, b, test_precision<long double>()); } in test_isApproxOrLessThan()
291 return a.isApprox(b, test_precision<typename Type1::Scalar>()); in test_isApprox()
311 return m1.isMuchSmallerThan(m2, test_precision<typename internal::traits<Derived1>::Scalar>()); in test_isMuchSmallerThan()
318 return m.isMuchSmallerThan(s, test_precision<typename internal::traits<Derived>::Scalar>()); in test_isMuchSmallerThan()
324 return m.isUnitary(test_precision<typename internal::traits<Derived>::Scalar>()); in test_isUnitary()