11 #ifndef EIGEN_EULERANGLES_H
12 #define EIGEN_EULERANGLES_H
44 template <
typename Derived>
52 const Index odd = ((a0 + 1) % 3 == a1) ? 0 : 1;
54 const Index j = (a0 + 1 + odd) % 3;
55 const Index k = (a0 + 2 - odd) % 3;
66 Scalar s2 = numext::hypot(coeff(
j,
i), coeff(
k,
i));
107 Scalar c2 = numext::hypot(coeff(
i,
i), coeff(
i,
j));
135 template <
typename Derived>
143 const Index odd = ((a0 + 1) % 3 == a1) ? 0 : 1;
145 const Index j = (a0 + 1 + odd) % 3;
146 const Index k = (a0 + 2 - odd) % 3;
157 Scalar s2 = numext::hypot(coeff(
j,
i), coeff(
k,
i));
160 Scalar s2 = numext::hypot(coeff(
j,
i), coeff(
k,
i));
179 Scalar c2 = numext::hypot(coeff(
i,
i), coeff(
i,
j));
int i
Definition: BiCGSTAB_step_by_step.cpp:9
#define EIGEN_DEPRECATED
Definition: Macros.h:931
#define EIGEN_DEVICE_FUNC
Definition: Macros.h:892
#define EIGEN_PI
Definition: MathFunctions.h:16
cout<< "Here is the matrix m:"<< endl<< m<< endl;Matrix< ptrdiff_t, 3, 1 > res
Definition: PartialRedux_count.cpp:3
#define EIGEN_STATIC_ASSERT_MATRIX_SPECIFIC_SIZE(TYPE, ROWS, COLS)
Definition: StaticAssert.h:55
SCALAR Scalar
Definition: bench_gemm.cpp:45
internal::traits< Derived >::Scalar Scalar
Definition: DenseBase.h:62
The matrix class, also used for vectors and row-vectors.
Definition: Eigen/Eigen/src/Core/Matrix.h:186
EIGEN_DEVICE_FUNC Matrix< Scalar, 3, 1 > canonicalEulerAngles(Index a0, Index a1, Index a2) const
Definition: Eigen/src/Geometry/EulerAngles.h:45
EIGEN_DEPRECATED EIGEN_DEVICE_FUNC Matrix< Scalar, 3, 1 > eulerAngles(Index a0, Index a1, Index a2) const
Definition: Eigen/src/Geometry/EulerAngles.h:137
char char char int int * k
Definition: level2_impl.h:374
EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE T cos(const T &x)
Definition: MathFunctions.h:1559
EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE T sin(const T &x)
Definition: MathFunctions.h:1581
EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE T atan2(const T &y, const T &x)
Definition: MathFunctions.h:1689
Namespace containing all symbols from the Eigen library.
Definition: bench_norm.cpp:70
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
Definition: Meta.h:83
std::ptrdiff_t j
Definition: tut_arithmetic_redux_minmax.cpp:2