From 0e2a480466220ea2054b8dbe68569b3440918174 Mon Sep 17 00:00:00 2001 From: Benoit Jacob Date: Sat, 8 May 2010 15:58:27 -0400 Subject: [PATCH] use CoeffReturnType --- Eigen/src/Core/Diagonal.h | 4 ++-- 1 file 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 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 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()); }