diff --git a/unsupported/Eigen/AlignedVector3 b/unsupported/Eigen/AlignedVector3 index b4966f500..19217693f 100644 --- a/unsupported/Eigen/AlignedVector3 +++ b/unsupported/Eigen/AlignedVector3 @@ -41,7 +41,7 @@ namespace Eigen { /** \class AlignedVector3 * - * \brief A vectorization frinedly 3D vector + * \brief A vectorization friendly 3D vector * * This class represents a 3D vector internally using a 4D vector * such that vectorization can be seamlessly enabled. Of course, @@ -70,13 +70,13 @@ template class AlignedVector3 inline int rows() const { return 3; } inline int cols() const { return 1; } - inline const Scalar coeff(int row, int col) const + inline const Scalar& coeff(int row, int col) const { return m_coeffs.coeff(row, col); } inline Scalar& coeffRef(int row, int col) { return m_coeffs.coeffRef(row, col); } - inline const Scalar coeff(int index) const + inline const Scalar& coeff(int index) const { return m_coeffs.coeff(index); } inline Scalar& coeffRef(int index) diff --git a/unsupported/test/alignedvector3.cpp b/unsupported/test/alignedvector3.cpp index 6a5a700ab..49c753953 100644 --- a/unsupported/test/alignedvector3.cpp +++ b/unsupported/test/alignedvector3.cpp @@ -30,7 +30,6 @@ void alignedvector3() { Scalar s1 = ei_random(); Scalar s2 = ei_random(); - Scalar s3 = ei_random(); typedef Matrix RefType; typedef Matrix Mat33; typedef AlignedVector3 FastType;