Home | History | Annotate | Download | only in test

Lines Matching refs:test_precision

305 template<typename T> inline typename NumTraits<T>::Real test_precision() { return NumTraits<T>::dummy_precision(); }
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<long double>(); }
314 { return internal::isApprox(a, b, test_precision<short>()); }
316 { return internal::isApprox(a, b, test_precision<unsigned long>()); }
318 { return internal::isApprox(a, b, test_precision<unsigned int>()); }
320 { return internal::isApprox(a, b, test_precision<long>()); }
322 { return internal::isApprox(a, b, test_precision<unsigned long>()); }
325 { return internal::isApprox(a, b, test_precision<int>()); }
327 { return internal::isMuchSmallerThan(a, b, test_precision<int>()); }
329 { return internal::isApproxOrLessThan(a, b, test_precision<int>()); }
332 { return internal::isApprox(a, b, test_precision<float>()); }
334 { return internal::isMuchSmallerThan(a, b, test_precision<float>()); }
336 { return internal::isApproxOrLessThan(a, b, test_precision<float>()); }
339 { return internal::isApprox(a, b, test_precision<double>()); }
341 { return internal::isMuchSmallerThan(a, b, test_precision<double>()); }
343 { return internal::isApproxOrLessThan(a, b, test_precision<double>()); }
347 { return internal::isApprox(a, b, test_precision<std::complex<float> >()); }
349 { return internal::isMuchSmallerThan(a, b, test_precision<std::complex<float> >()); }
352 { return internal::isApprox(a, b, test_precision<std::complex<double> >()); }
354 { return internal::isMuchSmallerThan(a, b, test_precision<std::complex<double> >()); }
358 { return internal::isApprox(a, b, test_precision<std::complex<long double> >()); }
360 { return internal::isMuchSmallerThan(a, b, test_precision<std::complex<long double> >()); }
367 bool ret = internal::isApprox(a, b, test_precision<long double>());
375 { return internal::isMuchSmallerThan(a, b, test_precision<long double>()); }
377 { return internal::isApproxOrLessThan(a, b, test_precision<long double>()); }
381 { return internal::isApprox(a, b, test_precision<half>()); }
383 { return internal::isMuchSmallerThan(a, b, test_precision<half>()); }
385 { return internal::isApproxOrLessThan(a, b, test_precision<half>()); }
471 return a.isApprox(b, test_precision<typename Type1::Scalar>());
474 // get_test_precision is a small wrapper to test_precision allowing to return the scalar precision for either scalars or expressions
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>());
523 return m.isMuchSmallerThan(s, test_precision<typename internal::traits<Derived>::Scalar>());
529 return m.isUnitary(test_precision<typename internal::traits<Derived>::Scalar>());