10#ifndef EIGEN_EULERANGLES_H
11#define EIGEN_EULERANGLES_H
35template<
typename Derived>
48 const Index odd = ((a0+1)%3 == a1) ? 0 : 1;
50 const Index j = (a0 + 1 + odd)%3;
51 const Index k = (a0 + 2 - odd)%3;
64 Scalar s2 = Vector2(coeff(
j,
i), coeff(k,
i)).norm();
69 Scalar s2 = Vector2(coeff(
j,
i), coeff(k,
i)).norm();
85 res[2] =
atan2(c1*coeff(
j,k)-s1*coeff(k,k), c1*coeff(
j,
j) - s1 * coeff(k,
j));
90 Scalar c2 = Vector2(coeff(
i,
i), coeff(
i,
j)).norm();
104 res[2] =
atan2(s1*coeff(k,
i)-c1*coeff(
j,
i), c1*coeff(
j,
j) - s1 * coeff(k,
j));
int i
Definition BiCGSTAB_step_by_step.cpp:9
#define EIGEN_PI
Definition MathFunctions.h:16
#define EIGEN_USING_STD(FUNC)
Definition Macros.h:1185
#define EIGEN_DEVICE_FUNC
Definition Macros.h:976
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:162
SCALAR Scalar
Definition bench_gemm.cpp:46
internal::traits< Derived >::Scalar Scalar
Definition MatrixBase.h:56
The matrix class, also used for vectors and row-vectors.
Definition Matrix.h:180
EIGEN_DEVICE_FUNC Matrix< Scalar, 3, 1 > eulerAngles(Index a0, Index a1, Index a2) const
Definition EulerAngles.h:37
Namespace containing all symbols from the Eigen library.
Definition bench_norm.cpp:85
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
Definition Meta.h:74
const AutoDiffScalar< Matrix< typename internal::traits< typename internal::remove_all< DerTypeA >::type >::Scalar, Dynamic, 1 > > atan2(const AutoDiffScalar< DerTypeA > &a, const AutoDiffScalar< DerTypeB > &b)
Definition AutoDiffScalar.h:654
std::ptrdiff_t j
Definition tut_arithmetic_redux_minmax.cpp:2