• Home
  • Raw
  • Download

Lines Matching refs:Scalar

16 template<typename Scalar>
17 void verify_euler(const Matrix<Scalar,3,1>& ea, int i, int j, int k) in verify_euler() argument
19 typedef Matrix<Scalar,3,3> Matrix3; in verify_euler()
20 typedef Matrix<Scalar,3,1> Vector3; in verify_euler()
21 typedef AngleAxis<Scalar> AngleAxisx; in verify_euler()
29 …|| ea[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()
33 VERIFY(0 < eabis[0] || test_isMuchSmallerThan(eabis[0], Scalar(1))); 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()
41 template<typename Scalar> void check_all_var(const Matrix<Scalar,3,1>& ea) in check_all_var() argument
59 template<typename Scalar> void eulerangles() in eulerangles()
61 typedef Matrix<Scalar,3,3> Matrix3; in eulerangles()
62 typedef Matrix<Scalar,3,1> Vector3; in eulerangles()
63 typedef Array<Scalar,3,1> Array3; in eulerangles()
64 typedef Quaternion<Scalar> Quaternionx; in eulerangles()
65 typedef AngleAxis<Scalar> AngleAxisx; in eulerangles()
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()