aboutsummaryrefslogtreecommitdiffhomepage
path: root/unsupported/Eigen/AlignedVector3
diff options
context:
space:
mode:
authorGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2009-05-09 03:39:31 +0000
committerGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2009-05-09 03:39:31 +0000
commit3b79d99f715bd9e1b21859f5ef2f274f1294df32 (patch)
treeaf9c6e766bf732a9ad710f4bf874979f3ad1ca52 /unsupported/Eigen/AlignedVector3
parentc500415e18c1598d28db87252453b01d918f8ad3 (diff)
*make coeff() return a const reference (required with the recent change with CoeffReturnType)
*fix a unused variable warning
Diffstat (limited to 'unsupported/Eigen/AlignedVector3')
-rw-r--r--unsupported/Eigen/AlignedVector36
1 files changed, 3 insertions, 3 deletions
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<typename _Scalar> 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)