/external/eigen/unsupported/test/ |
D | EulerAngles.cpp | 34 alphaRangeEnd = Scalar(2 * EIGEN_PI); in verify_euler_ranged() 38 alphaRangeStart = -Scalar(EIGEN_PI); in verify_euler_ranged() 39 alphaRangeEnd = Scalar(EIGEN_PI); in verify_euler_ranged() 45 betaRangeEnd = Scalar(2 * EIGEN_PI); in verify_euler_ranged() 49 betaRangeStart = -Scalar(EIGEN_PI); in verify_euler_ranged() 50 betaRangeEnd = Scalar(EIGEN_PI); in verify_euler_ranged() 56 gammaRangeEnd = Scalar(2 * EIGEN_PI); in verify_euler_ranged() 60 gammaRangeStart = -Scalar(EIGEN_PI); in verify_euler_ranged() 61 gammaRangeEnd = Scalar(EIGEN_PI); in verify_euler_ranged() 95 eabis2[0] += Scalar(2 * EIGEN_PI); in verify_euler_ranged() [all …]
|
D | matrix_function.cpp | 116 if (maxImagPartOfSpectrum >= RealScalar(0.9L * EIGEN_PI)) in testMatrixLogarithm() 117 scaledA = A * RealScalar(0.9L * EIGEN_PI) / maxImagPartOfSpectrum; in testMatrixLogarithm()
|
D | matrix_power.cpp | 27 C = Apow(std::ldexp(angle,1) / T(EIGEN_PI)); in test2dRotation()
|
/external/eigen/test/ |
D | geo_eulerangles.cpp | 29 …if( (i!=k || ea[1]!=0) && (i==k || !internal::isApprox(abs(ea[1]),Scalar(EIGEN_PI/2),test_precisio… in verify_euler() 34 VERIFY_IS_APPROX_OR_LESS_THAN(eabis[0], Scalar(EIGEN_PI)); in verify_euler() 35 VERIFY_IS_APPROX_OR_LESS_THAN(-Scalar(EIGEN_PI), eabis[1]); in verify_euler() 36 VERIFY_IS_APPROX_OR_LESS_THAN(eabis[1], Scalar(EIGEN_PI)); in verify_euler() 37 VERIFY_IS_APPROX_OR_LESS_THAN(-Scalar(EIGEN_PI), eabis[2]); in verify_euler() 38 VERIFY_IS_APPROX_OR_LESS_THAN(eabis[2], Scalar(EIGEN_PI)); in verify_euler() 67 Scalar a = internal::random<Scalar>(-Scalar(EIGEN_PI), Scalar(EIGEN_PI)); in eulerangles() 87 ea = (Array3::Random() + Array3(1,0,0))*Scalar(EIGEN_PI)*Array3(0.5,1,1); in eulerangles() 90 ea[2] = ea[0] = internal::random<Scalar>(0,Scalar(EIGEN_PI)); in eulerangles() 93 ea[0] = ea[1] = internal::random<Scalar>(0,Scalar(EIGEN_PI)); in eulerangles()
|
D | half_float.cpp | 197 VERIFY_IS_APPROX(float(numext::exp(half(EIGEN_PI))), 20.f + float(EIGEN_PI)); in test_basic_functions() 198 VERIFY_IS_APPROX(float(exp(half(EIGEN_PI))), 20.f + float(EIGEN_PI)); in test_basic_functions() 215 VERIFY_IS_APPROX(numext::cos(half(EIGEN_PI)), half(cosf(EIGEN_PI))); in test_trigonometric_functions() 223 VERIFY_IS_APPROX(numext::sin(half(EIGEN_PI/2)), half(sinf(EIGEN_PI/2))); in test_trigonometric_functions() 224 VERIFY_IS_APPROX(numext::sin(half(3*EIGEN_PI/2)), half(sinf(3*EIGEN_PI/2))); in test_trigonometric_functions()
|
D | geo_quaternion.cpp | 33 if(theta_tot>Scalar(EIGEN_PI)) in check_slerp() 34 theta_tot = Scalar(2.)*Scalar(EIGEN_PI)-theta_tot; in check_slerp() 67 Scalar a = internal::random<Scalar>(-Scalar(EIGEN_PI), Scalar(EIGEN_PI)), in quaternion() 68 b = internal::random<Scalar>(-Scalar(EIGEN_PI), Scalar(EIGEN_PI)); in quaternion() 85 if (refangle>Scalar(EIGEN_PI)) in quaternion() 86 refangle = Scalar(2)*Scalar(EIGEN_PI) - refangle; in quaternion() 164 q2 = AngleAxisx(b+Scalar(EIGEN_PI), v1.normalized()); in quaternion() 187 Scalar a = internal::random<Scalar>(-Scalar(EIGEN_PI), Scalar(EIGEN_PI)); in mapQuaternion()
|
D | geo_transformations.cpp | 43 Scalar a = internal::random<Scalar>(-Scalar(EIGEN_PI), Scalar(EIGEN_PI)); in non_projective_only() 111 Scalar a = internal::random<Scalar>(-Scalar(EIGEN_PI), Scalar(EIGEN_PI)); in transformations() 118 VERIFY_IS_APPROX(-v0, AngleAxisx(Scalar(EIGEN_PI), v0.unitOrthogonal()) * v0); in transformations() 172 a = internal::random<Scalar>(-Scalar(0.4)*Scalar(EIGEN_PI), Scalar(0.4)*Scalar(EIGEN_PI)); in transformations() 218 Scalar a3 = internal::random<Scalar>(-Scalar(EIGEN_PI), Scalar(EIGEN_PI)); in transformations() 436 VERIFY( rot2.smallestPositiveAngle() <= Scalar(2)*Scalar(EIGEN_PI) ); in transformations() 439 VERIFY( rot2.smallestAngle() >= -Scalar(EIGEN_PI) ); in transformations() 440 VERIFY( rot2.smallestAngle() <= Scalar(EIGEN_PI) ); in transformations() 467 VERIFY_IS_APPROX(Scalar(EIGEN_PI), (R0.slerp(0.5, R0.inverse())).smallestPositiveAngle()); in transformations() 478 VERIFY(l<=Scalar(EIGEN_PI)*(Scalar(1)+NumTraits<Scalar>::epsilon()*Scalar(path_steps/2))); in transformations() [all …]
|
/external/eigen/Eigen/src/Geometry/ |
D | Rotation2D.h | 85 Scalar tmp = numext::fmod(m_angle,Scalar(2*EIGEN_PI)); 86 return tmp<Scalar(0) ? tmp + Scalar(2*EIGEN_PI) : tmp; 91 Scalar tmp = numext::fmod(m_angle,Scalar(2*EIGEN_PI)); 92 if(tmp>Scalar(EIGEN_PI)) tmp -= Scalar(2*EIGEN_PI); 93 else if(tmp<-Scalar(EIGEN_PI)) tmp += Scalar(2*EIGEN_PI);
|
D | EulerAngles.h | 59 res[0] -= Scalar(EIGEN_PI); in eulerAngles() 62 res[0] += Scalar(EIGEN_PI); in eulerAngles() 93 res[0] -= Scalar(EIGEN_PI); in eulerAngles() 96 res[0] += Scalar(EIGEN_PI); in eulerAngles()
|
D | Quaternion.h | 624 u2 = internal::random<Scalar>(0, 2*EIGEN_PI), 625 u3 = internal::random<Scalar>(0, 2*EIGEN_PI);
|
/external/eigen/unsupported/Eigen/src/EulerAngles/ |
D | EulerSystem.h | 193 res[0] -= Scalar(EIGEN_PI); 196 res[0] += Scalar(EIGEN_PI); 221 res[0] -= Scalar(EIGEN_PI); 224 res[0] += Scalar(EIGEN_PI); 293 res.alpha() += Scalar(2 * EIGEN_PI); 296 res.beta() += Scalar(2 * EIGEN_PI); 299 res.gamma() += Scalar(2 * EIGEN_PI);
|
/external/eigen/unsupported/Eigen/src/MatrixFunctions/ |
D | MatrixLogarithm.h | 65 … = static_cast<int>(ceil((imag(logA11 - logA00) - RealScalar(EIGEN_PI)) / RealScalar(2*EIGEN_PI))); in matrix_log_compute_2x2() 66 result(0,1) = A(0,1) * (numext::log1p(y/A(0,0)) + Scalar(0,2*EIGEN_PI*unwindingNumber)) / y; in matrix_log_compute_2x2()
|
D | MatrixPower.h | 301 …ngNumber = ceil((numext::imag(logCurr - logPrev) - RealScalar(EIGEN_PI)) / RealScalar(2*EIGEN_PI)); in computeSuperDiag() 302 …ComplexScalar w = numext::log1p((curr-prev)/prev)/RealScalar(2) + ComplexScalar(0, EIGEN_PI*unwind… in computeSuperDiag()
|
/external/eigen/unsupported/Eigen/ |
D | OpenGLSupport | 183 glRotatef(rot.angle()*180.f/float(EIGEN_PI), 0.f, 0.f, 1.f); 187 glRotated(rot.angle()*180.0/EIGEN_PI, 0.0, 0.0, 1.0);
|
/external/eigen/Eigen/src/Core/ |
D | MathFunctions.h | 15 #define EIGEN_PI 3.141592653589793238462643383279502884197169399375105820974944592307816406L macro 461 return (x < Scalar(0)) ? Scalar(EIGEN_PI) : Scalar(0); }
|
/external/eigen/unsupported/Eigen/CXX11/src/Tensor/ |
D | TensorFFT.h | 235 const RealScalar pi_over_len(EIGEN_PI / line_len);
|
/external/eigen/unsupported/Eigen/src/SpecialFunctions/ |
D | SpecialFunctionsImpl.h | 287 const Scalar m_pi = Scalar(EIGEN_PI);
|