Home | History | Annotate | Download | only in test

Lines Matching defs:test_precision

236 template<typename T> inline typename NumTraits<T>::Real test_precision() { return NumTraits<T>::dummy_precision(); }
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>()); }
246 { return internal::isMuchSmallerThan(a, b, test_precision<int>()); }
248 { return internal::isApproxOrLessThan(a, b, test_precision<int>()); }
251 { return internal::isApprox(a, b, test_precision<float>()); }
253 { return internal::isMuchSmallerThan(a, b, test_precision<float>()); }
255 { return internal::isApproxOrLessThan(a, b, test_precision<float>()); }
257 { return internal::isApprox(a, b, test_precision<double>()); }
260 { return internal::isMuchSmallerThan(a, b, test_precision<double>()); }
262 { return internal::isApproxOrLessThan(a, b, test_precision<double>()); }
265 { return internal::isApprox(a, b, test_precision<std::complex<float> >()); }
267 { return internal::isMuchSmallerThan(a, b, test_precision<std::complex<float> >()); }
270 { return internal::isApprox(a, b, test_precision<std::complex<double> >()); }
272 { return internal::isMuchSmallerThan(a, b, test_precision<std::complex<double> >()); }
276 bool ret = internal::isApprox(a, b, test_precision<long double>());
284 { return internal::isMuchSmallerThan(a, b, test_precision<long double>()); }
286 { return internal::isApproxOrLessThan(a, b, test_precision<long double>()); }
291 return a.isApprox(b, test_precision<typename Type1::Scalar>());
311 return m1.isMuchSmallerThan(m2, test_precision<typename internal::traits<Derived1>::Scalar>());
318 return m.isMuchSmallerThan(s, test_precision<typename internal::traits<Derived>::Scalar>());
324 return m.isUnitary(test_precision<typename internal::traits<Derived>::Scalar>());