Home
last modified time | relevance | path

Searched refs:test_precision (Results 1 – 25 of 25) sorted by relevance

/external/eigen/test/eigen2/
Dmain.h151 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()
[all …]
Deigen2_sparse_solvers.cpp89 VERIFY(refX.isApprox(x,test_precision<Scalar>()) && "LLT: default"); in sparse_solvers()
94 VERIFY(refX.isApprox(x,test_precision<Scalar>()) && "LLT: cholmod"); in sparse_solvers()
101 VERIFY(refX.isApprox(x,test_precision<Scalar>()) && "LLT: taucs (IncompleteFactorization)"); in sparse_solvers()
104 VERIFY(refX.isApprox(x,test_precision<Scalar>()) && "LLT: taucs (SupernodalMultifrontal)"); in sparse_solvers()
107 VERIFY(refX.isApprox(x,test_precision<Scalar>()) && "LLT: taucs (SupernodalLeftLooking)"); in sparse_solvers()
133 VERIFY(refX.isApprox(x,test_precision<Scalar>()) && "LDLT: default"); in sparse_solvers()
162 VERIFY(refX.isApprox(x,test_precision<Scalar>()) && "LU: SuperLU"); in sparse_solvers()
179 …VERIFY(refX.isApprox(x,test_precision<Scalar>()) && "LU: umfpack"); // FIXME solve is not very st… in sparse_solvers()
Deigen2_triangular.cpp18 RealScalar largerEps = 10*test_precision<RealScalar>(); in triangular()
78 …gen::LowerTriangular>().solveTriangular(m3).cwise().abs().isIdentity(test_precision<RealScalar>())… in triangular()
80 .solveTriangular(m3.transpose()).cwise().abs().isIdentity(test_precision<RealScalar>())); in triangular()
84 VERIFY(m4.cwise().abs().isIdentity(test_precision<RealScalar>())); in triangular()
87 …gen::UpperTriangular>().solveTriangular(m3).cwise().abs().isIdentity(test_precision<RealScalar>())… in triangular()
89 .solveTriangular(m3.transpose()).cwise().abs().isIdentity(test_precision<RealScalar>())); in triangular()
93 VERIFY(m4.cwise().abs().isIdentity(test_precision<RealScalar>())); in triangular()
Deigen2_svd.cpp28 RealScalar largerEps = test_precision<RealScalar>(); in svd()
Deigen2_adjoint.cpp25 RealScalar largerEps = test_precision<RealScalar>(); in adjoint()
Deigen2_geometry.cpp36 Scalar largeEps = test_precision<Scalar>(); in geometry()
167 VERIFY((t0.matrix() * t1.matrix()).isIdentity(test_precision<Scalar>())); in geometry()
248 …* (t21.prescale(v21.cwise().inverse()).translate(-v20))).matrix().isIdentity(test_precision<Scalar… in geometry()
Deigen2_geometry_with_eigen2_prefix.cpp38 Scalar largeEps = test_precision<Scalar>(); in geometry()
169 VERIFY((t0.matrix() * t1.matrix()).isIdentity(test_precision<Scalar>())); in geometry()
250 …* (t21.prescale(v21.cwise().inverse()).translate(-v20))).matrix().isIdentity(test_precision<Scalar… in geometry()
Deigen2_eigensolver.cpp31 RealScalar largerEps = 10*test_precision<RealScalar>(); in selfadjointeigensolver()
/external/eigen/test/
Dmain.h213 template<typename T> inline typename NumTraits<T>::Real test_precision() { return NumTraits<T>::dum… in test_precision() function
214 template<> inline float test_precision<float>() { return 1e-3f; }
215 template<> inline double test_precision<double>() { return 1e-6; }
216 template<> inline float test_precision<std::complex<float> >() { return test_precision<float>(); }
217 template<> inline double test_precision<std::complex<double> >() { return test_precision<double>();…
218 template<> inline long double test_precision<long double>() { return 1e-6; }
221 { return internal::isApprox(a, b, test_precision<int>()); } in test_isApprox()
223 { return internal::isMuchSmallerThan(a, b, test_precision<int>()); } in test_isMuchSmallerThan()
225 { return internal::isApproxOrLessThan(a, b, test_precision<int>()); } in test_isApproxOrLessThan()
228 { return internal::isApprox(a, b, test_precision<float>()); } in test_isApprox()
[all …]
Dgeo_eulerangles.cpp29 …if( (i!=k || ea[1]!=0) && (i==k || !internal::isApprox(abs(ea[1]),Scalar(M_PI/2),test_precision<Sc… in verify_euler()
30 VERIFY((ea-eabis).norm() <= test_precision<Scalar>()); in verify_euler()
Dsparse_solver.h39 VERIFY(x.isApprox(refX,test_precision<Scalar>())); in check_sparse_solving()
58 VERIFY(x.isApprox(refX,test_precision<Scalar>())); in check_sparse_solving()
68 VERIFY(x.isApprox(refX,test_precision<Scalar>())); in check_sparse_solving()
104 if (res_error > test_precision<Scalar>() ){ in check_sparse_solving_real_cases()
Dgeo_quaternion.cpp30 Scalar largeEps = test_precision<Scalar>(); in check_slerp()
56 Scalar largeEps = test_precision<Scalar>(); in quaternion()
111 if (abs(aa.angle()) > 5*test_precision<Scalar>() in quaternion()
Dspqr_support.cpp56 VERIFY(x.isApprox(refX,test_precision<Scalar>())); in test_spqr_scalar()
Dgeo_transformations.cpp58 VERIFY((t0 * t1).matrix().isIdentity(test_precision<Scalar>())); in non_projective_only()
167 VERIFY((t0 * t1).matrix().isIdentity(test_precision<Scalar>())); in transformations()
248 …* (t21.prescale(v21.cwiseInverse()).translate(-v20))).matrix().isIdentity(test_precision<Scalar>()… in transformations()
Dproduct_trmv.cpp19 RealScalar largerEps = 10*test_precision<RealScalar>(); in trmv()
Deigensolver_selfadjoint.cpp27 RealScalar largerEps = 10*test_precision<RealScalar>(); in selfadjointeigensolver()
Dadjoint.cpp48 …erThan(abs(v1.dot(square * v2) - (square.adjoint() * v1).dot(v2)), ref, test_precision<Scalar>())); in run()
Dtriangular.cpp20 RealScalar largerEps = 10*test_precision<RealScalar>(); in triangular_square()
Darray.cpp71 …if (!internal::isMuchSmallerThan(abs(m1.sum() - (m1+m2).sum()), m1.abs().sum(), test_precision<Sca… in array()
Djacobisvd.cpp132 } while(m2.jacobiSvd().setThreshold(test_precision<Scalar>()).rank()!=rank && (++guard)<10); in jacobisvd_solve()
/external/eigen/unsupported/test/
DFFTW.cpp96 VERIFY( fft_rmse(freqBuf,tbuf) < test_precision<T>() );// gross check in test_scalar_generic()
101 VERIFY( fft_rmse(freqBuf,tbuf) < test_precision<T>() );// gross check in test_scalar_generic()
108 VERIFY( dif_rmse(tbuf,tbuf2) < test_precision<T>() );// gross check in test_scalar_generic()
124 VERIFY( dif_rmse(tbuf,tbuf3) < test_precision<T>() );// gross check in test_scalar_generic()
129 VERIFY( dif_rmse(tbuf,tbuf2) < test_precision<T>() );// gross check in test_scalar_generic()
155 VERIFY( fft_rmse(outbuf,inbuf) < test_precision<T>() );// gross check in test_complex_generic()
158 VERIFY( dif_rmse(inbuf,buf3) < test_precision<T>() );// gross check in test_complex_generic()
166 VERIFY( dif_rmse(inbuf,buf4) < test_precision<T>() );// gross check in test_complex_generic()
171 VERIFY( dif_rmse(inbuf,buf3) < test_precision<T>() );// gross check in test_complex_generic()
223 VERIFY( (out1-out2).norm() < test_precision<float>() ); in test_return_by_value()
[all …]
Dpolynomialsolver.cpp47 bool evalToZero = evr.isZero( test_precision<Scalar>() ); in aux_evalSolver()
116 const Scalar psPrec = sqrt( test_precision<Scalar>() ); in evalSolverSugarFunction()
Dpolynomialutils.cpp43 bool evalToZero = evr.isZero( test_precision<_Scalar>() ); in realRoots_to_monicPolynomial_test()
Dmatrix_function.cpp20 return ((a-b).array().abs() < test_precision<typename Type1::RealScalar>()).all(); in test_isApprox_abs()
/external/eigen/bench/spbench/
Dspbenchsolver.h85 template<typename T> inline typename NumTraits<T>::Real test_precision() { return NumTraits<T>::dum… in test_precision() function
86 template<> inline float test_precision<float>() { return 1e-3f; } …
87 template<> inline double test_precision<double>() { return 1e-6; } …
88 template<> inline float test_precision<std::complex<float> >() { return test_precision<float>(); }
89 template<> inline double test_precision<std::complex<double> >() { return test_precision<double>();…