Home
last modified time | relevance | path

Searched refs:EIGEN_PI (Results 1 – 17 of 17) sorted by relevance

/external/eigen/unsupported/test/
DEulerAngles.cpp34 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 …]
Dmatrix_function.cpp116 if (maxImagPartOfSpectrum >= RealScalar(0.9L * EIGEN_PI)) in testMatrixLogarithm()
117 scaledA = A * RealScalar(0.9L * EIGEN_PI) / maxImagPartOfSpectrum; in testMatrixLogarithm()
Dmatrix_power.cpp27 C = Apow(std::ldexp(angle,1) / T(EIGEN_PI)); in test2dRotation()
/external/eigen/test/
Dgeo_eulerangles.cpp29 …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()
Dhalf_float.cpp197 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()
Dgeo_quaternion.cpp33 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()
Dgeo_transformations.cpp43 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/
DRotation2D.h85 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);
DEulerAngles.h59 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()
DQuaternion.h624 u2 = internal::random<Scalar>(0, 2*EIGEN_PI),
625 u3 = internal::random<Scalar>(0, 2*EIGEN_PI);
/external/eigen/unsupported/Eigen/src/EulerAngles/
DEulerSystem.h193 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/
DMatrixLogarithm.h65 … = 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()
DMatrixPower.h301 …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/
DOpenGLSupport183 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/
DMathFunctions.h15 #define EIGEN_PI 3.141592653589793238462643383279502884197169399375105820974944592307816406L macro
461 return (x < Scalar(0)) ? Scalar(EIGEN_PI) : Scalar(0); }
/external/eigen/unsupported/Eigen/CXX11/src/Tensor/
DTensorFFT.h235 const RealScalar pi_over_len(EIGEN_PI / line_len);
/external/eigen/unsupported/Eigen/src/SpecialFunctions/
DSpecialFunctionsImpl.h287 const Scalar m_pi = Scalar(EIGEN_PI);