/external/eigen/test/ |
D | main.h | 305 template<typename T> inline typename NumTraits<T>::Real test_precision() { return NumTraits<T>::dum… in test_precision() function 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<… 314 { return internal::isApprox(a, b, test_precision<int>()); } in test_isApprox() 316 { return internal::isMuchSmallerThan(a, b, test_precision<int>()); } in test_isMuchSmallerThan() 318 { return internal::isApproxOrLessThan(a, b, test_precision<int>()); } in test_isApproxOrLessThan() [all …]
|
D | boostmultiprec.cpp | 83 Real test_precision<Real>() { return 1e-50; } in test_precision() function 118 return internal::isMuchSmallerThan(a, b, test_precision<Real>()); in test_isMuchSmallerThan() 122 return internal::isApprox(a, b, test_precision<Real>()); in test_isApprox() 126 return internal::isApproxOrLessThan(a, b, test_precision<Real>()); in test_isApproxOrLessThan() 130 return test_precision<Real>(); in get_test_precision()
|
D | sparse_solver.h | 66 VERIFY(x.isApprox(refX,test_precision<Scalar>())); in check_sparse_solving() 72 VERIFY(x.isApprox(refX,test_precision<Scalar>())); in check_sparse_solving() 82 VERIFY(x.isApprox(refX,test_precision<Scalar>())); in check_sparse_solving() 96 VERIFY(xm.isApprox(refX,test_precision<Scalar>())); in check_sparse_solving() 108 VERIFY(x.isApprox(refX,test_precision<Scalar>())); in check_sparse_solving() 118 VERIFY(x.isApprox(refX,test_precision<Scalar>())); in check_sparse_solving() 127 VERIFY(x.isApprox(refX,test_precision<Scalar>())); in check_sparse_solving() 134 VERIFY(x.isApprox(refX,test_precision<Scalar>())); in check_sparse_solving() 138 VERIFY(x2.isApprox(refX,test_precision<Scalar>())); in check_sparse_solving() 167 VERIFY( (res_error <= test_precision<Scalar>() ) && "sparse solver failed without noticing it"); in check_sparse_solving_real_cases() [all …]
|
D | geo_transformations.cpp | 69 VERIFY((t0 * t1).matrix().isIdentity(test_precision<Scalar>())); in non_projective_only() 114 while(v0.norm() < test_precision<Scalar>()) v0 = Vector3::Random(); in transformations() 115 while(v1.norm() < test_precision<Scalar>()) v1 = Vector3::Random(); in transformations() 119 if(abs(cos(a)) > test_precision<Scalar>()) in transformations() 145 …if( (abs(aa.angle()) > test_precision<Scalar>()) && (abs(aa.axis().dot(v1.normalized()))<(Scalar(1… in transformations() 153 …if( (abs(aa.angle()) > test_precision<Scalar>()) && (abs(aa.axis().dot(v1.normalized()))<(Scalar(1… in transformations() 193 VERIFY((t0 * t1).matrix().isIdentity(test_precision<Scalar>())); in transformations() 277 …* (t21.prescale(v21.cwiseInverse()).translate(-v20))).matrix().isIdentity(test_precision<Scalar>()… in transformations() 384 } while(t0.linear().jacobiSvd().singularValues()(2)<test_precision<Scalar>()); in transformations()
|
D | geo_eulerangles.cpp | 29 …[1]!=0) && (i==k || !internal::isApprox(abs(ea[1]),Scalar(EIGEN_PI/2),test_precision<Scalar>())) ) in verify_euler() 30 VERIFY((ea-eabis).norm() <= test_precision<Scalar>()); in verify_euler()
|
D | eigensolver_complex.cpp | 65 …RealScalar tol = test_precision<RealScalar>()*test_precision<RealScalar>()*numext::maxi(vec1.squar… in verify_is_approx_upto_permutation()
|
D | geo_quaternion.cpp | 30 Scalar largeEps = test_precision<Scalar>(); in check_slerp() 56 Scalar largeEps = test_precision<Scalar>(); in quaternion() 116 if (abs(aa.angle()) > 5*test_precision<Scalar>() in quaternion()
|
D | spqr_support.cpp | 58 VERIFY(x.isApprox(refX,test_precision<Scalar>())); in test_spqr_scalar()
|
D | eigensolver_selfadjoint.cpp | 22 …RealScalar eival_eps = numext::mini<RealScalar>(test_precision<RealScalar>(), NumTraits<Scalar>::… in selfadjointeigensolver_essential_check() 81 RealScalar largerEps = 10*test_precision<RealScalar>(); in selfadjointeigensolver()
|
D | product_trmv.cpp | 19 RealScalar largerEps = 10*test_precision<RealScalar>(); in trmv()
|
D | svd_common.h | 67 RealScalar prec = test_precision<RealScalar>(); in svd_compare_to_full() 193 …} while(SVD_FOR_MIN_NORM(MatrixType2)(m2).setThreshold(test_precision<Scalar>()).rank()!=rank && (… in svd_min_norm()
|
D | adjoint.cpp | 59 …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 | cholesky.cpp | 270 RealScalar large_tol = sqrt(test_precision<RealScalar>()); in cholesky()
|
D | array.cpp | 74 …if (!internal::isMuchSmallerThan(abs(m1.sum() - (m1+m2).sum()), m1.abs().sum(), test_precision<Sca… in array()
|
/external/eigen/unsupported/test/ |
D | FFTW.cpp | 96 VERIFY( T(fft_rmse(freqBuf,tbuf)) < test_precision<T>() );// gross check in test_scalar_generic() 101 VERIFY( T(fft_rmse(freqBuf,tbuf)) < test_precision<T>() );// gross check in test_scalar_generic() 108 VERIFY( T(dif_rmse(tbuf,tbuf2)) < test_precision<T>() );// gross check in test_scalar_generic() 124 VERIFY( T(dif_rmse(tbuf,tbuf3)) < test_precision<T>() );// gross check in test_scalar_generic() 129 VERIFY( T(dif_rmse(tbuf,tbuf2)) < test_precision<T>() );// gross check in test_scalar_generic() 155 VERIFY( T(fft_rmse(outbuf,inbuf)) < test_precision<T>() );// gross check in test_complex_generic() 158 VERIFY( T(dif_rmse(inbuf,buf3)) < test_precision<T>() );// gross check in test_complex_generic() 166 VERIFY( T(dif_rmse(inbuf,buf4)) < test_precision<T>() );// gross check in test_complex_generic() 171 VERIFY( T(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 | EulerAngles.cpp | 111 …[1]!=0) && (i==k || !internal::isApprox(abs(ea[1]),Scalar(EIGEN_PI/2),test_precision<Scalar>())) ) in verify_euler_ranged() 112 VERIFY((ea-eabis).norm() <= test_precision<Scalar>()); in verify_euler_ranged()
|
D | polynomialsolver.cpp | 50 bool evalToZero = evr.isZero( test_precision<Scalar>() ); in aux_evalSolver() 118 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>();…
|