Lines Matching refs:test_precision

151 template<typename T> inline typename NumTraits<T>::Real test_precision();
152 template<> inline int test_precision<int>() { return 0; }
153 template<> inline float test_precision<float>() { return 1e-3f; }
154 template<> inline double test_precision<double>() { return 1e-6; }
155 template<> inline float test_precision<std::complex<float> >() { return test_precision<float>(); }
156 template<> inline double test_precision<std::complex<double> >() { return test_precision<double>();…
157 template<> inline long double test_precision<long double>() { return 1e-6; }
160 { return ei_isApprox(a, b, test_precision<int>()); } in test_ei_isApprox()
162 { return ei_isMuchSmallerThan(a, b, test_precision<int>()); } in test_ei_isMuchSmallerThan()
164 { return ei_isApproxOrLessThan(a, b, test_precision<int>()); } in test_ei_isApproxOrLessThan()
167 { return ei_isApprox(a, b, test_precision<float>()); } in test_ei_isApprox()
169 { return ei_isMuchSmallerThan(a, b, test_precision<float>()); } in test_ei_isMuchSmallerThan()
171 { return ei_isApproxOrLessThan(a, b, test_precision<float>()); } in test_ei_isApproxOrLessThan()
174 { return ei_isApprox(a, b, test_precision<double>()); } in test_ei_isApprox()
176 { return ei_isMuchSmallerThan(a, b, test_precision<double>()); } in test_ei_isMuchSmallerThan()
178 { return ei_isApproxOrLessThan(a, b, test_precision<double>()); } in test_ei_isApproxOrLessThan()
181 { return ei_isApprox(a, b, test_precision<std::complex<float> >()); } in test_ei_isApprox()
183 { return ei_isMuchSmallerThan(a, b, test_precision<std::complex<float> >()); } in test_ei_isMuchSmallerThan()
186 { return ei_isApprox(a, b, test_precision<std::complex<double> >()); } in test_ei_isApprox()
188 { return ei_isMuchSmallerThan(a, b, test_precision<std::complex<double> >()); } in test_ei_isMuchSmallerThan()
191 { return ei_isApprox(a, b, test_precision<long double>()); } in test_ei_isApprox()
193 { return ei_isMuchSmallerThan(a, b, test_precision<long double>()); } in test_ei_isMuchSmallerThan()
195 { return ei_isApproxOrLessThan(a, b, test_precision<long double>()); } in test_ei_isApproxOrLessThan()
200 return a.isApprox(b, test_precision<typename Type1::Scalar>()); in test_ei_isApprox()
207 return m1.isMuchSmallerThan(m2, test_precision<typename ei_traits<Derived1>::Scalar>()); in test_ei_isMuchSmallerThan()
214 return m.isMuchSmallerThan(s, test_precision<typename ei_traits<Derived>::Scalar>()); in test_ei_isMuchSmallerThan()