aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen
diff options
context:
space:
mode:
authorGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2010-05-08 15:58:27 -0400
committerGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2010-05-08 15:58:27 -0400
commit0e2a480466220ea2054b8dbe68569b3440918174 (patch)
tree205bbff3709aa9f15cc051e9656869b6437214c7 /Eigen
parenteda2795f51f8defdacfb21b2e38a4e6b8bece123 (diff)
use CoeffReturnType
Diffstat (limited to 'Eigen')
-rw-r--r--Eigen/src/Core/Diagonal.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Eigen/src/Core/Diagonal.h b/Eigen/src/Core/Diagonal.h
index ce7cfc3b0..9ae7d79ce 100644
--- a/Eigen/src/Core/Diagonal.h
+++ b/Eigen/src/Core/Diagonal.h
@@ -103,7 +103,7 @@ template<typename MatrixType, int Index> class Diagonal
return m_matrix.const_cast_derived().coeffRef(row+rowOffset(), row+colOffset());
}
- inline const Scalar coeff(int row, int) const
+ inline CoeffReturnType coeff(int row, int) const
{
return m_matrix.coeff(row+rowOffset(), row+colOffset());
}
@@ -113,7 +113,7 @@ template<typename MatrixType, int Index> class Diagonal
return m_matrix.const_cast_derived().coeffRef(index+rowOffset(), index+colOffset());
}
- inline const Scalar coeff(int index) const
+ inline CoeffReturnType coeff(int index) const
{
return m_matrix.coeff(index+rowOffset(), index+colOffset());
}