diff options
author | 2015-02-16 15:05:41 +0100 | |
---|---|---|
committer | 2015-02-16 15:05:41 +0100 | |
commit | 45cbb0bbb1f66bbc923dd4dd1034b919f6b4a191 (patch) | |
tree | a0bfd3bc07784adac9f48b092f7fc2651c16389a /Eigen/src/Geometry/Quaternion.h | |
parent | cc641aabb710ab002b6c641bd5c3e1deed0e634d (diff) |
The usage of DenseIndex is deprecated, so let's replace DenseIndex by Index
Diffstat (limited to 'Eigen/src/Geometry/Quaternion.h')
-rw-r--r-- | Eigen/src/Geometry/Quaternion.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Eigen/src/Geometry/Quaternion.h b/Eigen/src/Geometry/Quaternion.h index 508eba767..e1ad803bb 100644 --- a/Eigen/src/Geometry/Quaternion.h +++ b/Eigen/src/Geometry/Quaternion.h @@ -724,7 +724,6 @@ template<typename Other> struct quaternionbase_assign_impl<Other,3,3> { typedef typename Other::Scalar Scalar; - typedef DenseIndex Index; template<class Derived> static inline void run(QuaternionBase<Derived>& q, const Other& mat) { using std::sqrt; @@ -742,13 +741,13 @@ struct quaternionbase_assign_impl<Other,3,3> } else { - DenseIndex i = 0; + Index i = 0; if (mat.coeff(1,1) > mat.coeff(0,0)) i = 1; if (mat.coeff(2,2) > mat.coeff(i,i)) i = 2; - DenseIndex j = (i+1)%3; - DenseIndex k = (j+1)%3; + Index j = (i+1)%3; + Index k = (j+1)%3; t = sqrt(mat.coeff(i,i)-mat.coeff(j,j)-mat.coeff(k,k) + Scalar(1.0)); q.coeffs().coeffRef(i) = Scalar(0.5) * t; |