/external/eigen/test/eigen2/ |
D | main.h | 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() [all …]
|
D | eigen2_sparse_solvers.cpp | 89 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()
|
D | eigen2_triangular.cpp | 18 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()
|
D | eigen2_svd.cpp | 28 RealScalar largerEps = test_precision<RealScalar>(); in svd()
|
D | eigen2_adjoint.cpp | 25 RealScalar largerEps = test_precision<RealScalar>(); in adjoint()
|
D | eigen2_geometry.cpp | 36 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()
|
D | eigen2_geometry_with_eigen2_prefix.cpp | 38 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()
|
D | eigen2_eigensolver.cpp | 31 RealScalar largerEps = 10*test_precision<RealScalar>(); in selfadjointeigensolver()
|
/external/eigen/test/ |
D | main.h | 213 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 …]
|
D | geo_eulerangles.cpp | 29 …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()
|
D | sparse_solver.h | 39 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()
|
D | geo_quaternion.cpp | 30 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()
|
D | spqr_support.cpp | 56 VERIFY(x.isApprox(refX,test_precision<Scalar>())); in test_spqr_scalar()
|
D | geo_transformations.cpp | 58 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()
|
D | product_trmv.cpp | 19 RealScalar largerEps = 10*test_precision<RealScalar>(); in trmv()
|
D | eigensolver_selfadjoint.cpp | 27 RealScalar largerEps = 10*test_precision<RealScalar>(); in selfadjointeigensolver()
|
D | adjoint.cpp | 48 …erThan(abs(v1.dot(square * v2) - (square.adjoint() * v1).dot(v2)), ref, test_precision<Scalar>())); in run()
|
D | triangular.cpp | 20 RealScalar largerEps = 10*test_precision<RealScalar>(); in triangular_square()
|
D | array.cpp | 71 …if (!internal::isMuchSmallerThan(abs(m1.sum() - (m1+m2).sum()), m1.abs().sum(), test_precision<Sca… in array()
|
D | jacobisvd.cpp | 132 } while(m2.jacobiSvd().setThreshold(test_precision<Scalar>()).rank()!=rank && (++guard)<10); in jacobisvd_solve()
|
/external/eigen/unsupported/test/ |
D | FFTW.cpp | 96 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 …]
|
D | polynomialsolver.cpp | 47 bool evalToZero = evr.isZero( test_precision<Scalar>() ); in aux_evalSolver() 116 const Scalar psPrec = sqrt( test_precision<Scalar>() ); in evalSolverSugarFunction()
|
D | polynomialutils.cpp | 43 bool evalToZero = evr.isZero( test_precision<_Scalar>() ); in realRoots_to_monicPolynomial_test()
|
D | matrix_function.cpp | 20 return ((a-b).array().abs() < test_precision<typename Type1::RealScalar>()).all(); in test_isApprox_abs()
|
/external/eigen/bench/spbench/ |
D | spbenchsolver.h | 85 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>();…
|