aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/Core/Transpose.h
diff options
context:
space:
mode:
authorGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2009-04-01 14:07:38 +0000
committerGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2009-04-01 14:07:38 +0000
commit0f8e692b3f5edcab61d586d0a996a2e30bbb68a2 (patch)
tree123daf9331ebec2e605545aa296a7ca1d7cec753 /Eigen/src/Core/Transpose.h
parent113fc3a2606997533287921ccec49e320bf9f79b (diff)
* Find SuperLU also when it is installed without a superlu/ prefix
* Some more CoeffReturnType changes
Diffstat (limited to 'Eigen/src/Core/Transpose.h')
-rw-r--r--Eigen/src/Core/Transpose.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/Eigen/src/Core/Transpose.h b/Eigen/src/Core/Transpose.h
index 6e3a13f40..edb87d0c3 100644
--- a/Eigen/src/Core/Transpose.h
+++ b/Eigen/src/Core/Transpose.h
@@ -77,19 +77,19 @@ template<typename MatrixType> class Transpose
return m_matrix.const_cast_derived().coeffRef(col, row);
}
- inline const Scalar coeff(int row, int col) const
+ inline Scalar& coeffRef(int index)
{
- return m_matrix.coeff(col, row);
+ return m_matrix.const_cast_derived().coeffRef(index);
}
- inline const Scalar coeff(int index) const
+ inline const CoeffReturnType coeff(int row, int col) const
{
- return m_matrix.coeff(index);
+ return m_matrix.coeff(col, row);
}
- inline Scalar& coeffRef(int index)
+ inline const CoeffReturnType coeff(int index) const
{
- return m_matrix.const_cast_derived().coeffRef(index);
+ return m_matrix.coeff(index);
}
template<int LoadMode>