Lines Matching refs:test_precision
305 template<typename T> inline typename NumTraits<T>::Real test_precision() { return NumTraits<T>::dum… in test_precision() function
306 template<> inline float test_precision<float>() { return 1e-3f; }
307 template<> inline double test_precision<double>() { return 1e-6; }
308 template<> inline long double test_precision<long double>() { return 1e-6l; }
309 template<> inline float test_precision<std::complex<float> >() { return test_precision<float>(); }
310 template<> inline double test_precision<std::complex<double> >() { return test_precision<double>();…
311 template<> inline long double test_precision<std::complex<long double> >() { return test_precision<…
314 { return internal::isApprox(a, b, test_precision<short>()); } in test_isApprox()
316 { return internal::isApprox(a, b, test_precision<unsigned long>()); } in test_isApprox()
318 { return internal::isApprox(a, b, test_precision<unsigned int>()); } in test_isApprox()
320 { return internal::isApprox(a, b, test_precision<long>()); } in test_isApprox()
322 { return internal::isApprox(a, b, test_precision<unsigned long>()); } in test_isApprox()
325 { return internal::isApprox(a, b, test_precision<int>()); } in test_isApprox()
327 { return internal::isMuchSmallerThan(a, b, test_precision<int>()); } in test_isMuchSmallerThan()
329 { return internal::isApproxOrLessThan(a, b, test_precision<int>()); } in test_isApproxOrLessThan()
332 { return internal::isApprox(a, b, test_precision<float>()); } in test_isApprox()
334 { return internal::isMuchSmallerThan(a, b, test_precision<float>()); } in test_isMuchSmallerThan()
336 { return internal::isApproxOrLessThan(a, b, test_precision<float>()); } in test_isApproxOrLessThan()
339 { return internal::isApprox(a, b, test_precision<double>()); } in test_isApprox()
341 { return internal::isMuchSmallerThan(a, b, test_precision<double>()); } in test_isMuchSmallerThan()
343 { return internal::isApproxOrLessThan(a, b, test_precision<double>()); } in test_isApproxOrLessThan()
347 { return internal::isApprox(a, b, test_precision<std::complex<float> >()); } in test_isApprox()
349 { return internal::isMuchSmallerThan(a, b, test_precision<std::complex<float> >()); } in test_isMuchSmallerThan()
352 { return internal::isApprox(a, b, test_precision<std::complex<double> >()); } in test_isApprox()
354 { return internal::isMuchSmallerThan(a, b, test_precision<std::complex<double> >()); } in test_isMuchSmallerThan()
358 { return internal::isApprox(a, b, test_precision<std::complex<long double> >()); } in test_isApprox()
360 { return internal::isMuchSmallerThan(a, b, test_precision<std::complex<long double> >()); } in test_isMuchSmallerThan()
367 bool ret = internal::isApprox(a, b, test_precision<long double>()); in test_isApprox()
375 { return internal::isMuchSmallerThan(a, b, test_precision<long double>()); } in test_isMuchSmallerThan()
377 { return internal::isApproxOrLessThan(a, b, test_precision<long double>()); } in test_isApproxOrLessThan()
381 { return internal::isApprox(a, b, test_precision<half>()); } in test_isApprox()
383 { return internal::isMuchSmallerThan(a, b, test_precision<half>()); } in test_isMuchSmallerThan()
385 { return internal::isApproxOrLessThan(a, b, test_precision<half>()); } in test_isApproxOrLessThan()
471 return a.isApprox(b, test_precision<typename Type1::Scalar>());
478 return test_precision<typename NumTraits<typename T::Scalar>::Real>();
484 return test_precision<typename NumTraits<T>::Real>();
516 return m1.isMuchSmallerThan(m2, test_precision<typename internal::traits<Derived1>::Scalar>()); in test_isMuchSmallerThan()
523 return m.isMuchSmallerThan(s, test_precision<typename internal::traits<Derived>::Scalar>()); in test_isMuchSmallerThan()
529 return m.isUnitary(test_precision<typename internal::traits<Derived>::Scalar>()); in test_isUnitary()