aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/Sparse/MappedSparseMatrix.h
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2009-05-11 10:59:27 +0000
committerGravatar Gael Guennebaud <g.gael@free.fr>2009-05-11 10:59:27 +0000
commit6a4e94f349fc2cf5de8666fa8129b91b429be7f0 (patch)
tree6056269725ccc6745e062ef7d373d1a557cfe476 /Eigen/src/Sparse/MappedSparseMatrix.h
parent9afd1324fd809631cd0762908629c30d72e61b40 (diff)
bugfix from Jens Mueller (s/RowMajor/IsRowMajor)
Diffstat (limited to 'Eigen/src/Sparse/MappedSparseMatrix.h')
-rw-r--r--Eigen/src/Sparse/MappedSparseMatrix.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/Eigen/src/Sparse/MappedSparseMatrix.h b/Eigen/src/Sparse/MappedSparseMatrix.h
index f4935d834..7c4dd4730 100644
--- a/Eigen/src/Sparse/MappedSparseMatrix.h
+++ b/Eigen/src/Sparse/MappedSparseMatrix.h
@@ -77,8 +77,8 @@ class MappedSparseMatrix
inline Scalar coeff(int row, int col) const
{
- const int outer = RowMajor ? row : col;
- const int inner = RowMajor ? col : row;
+ const int outer = IsRowMajor ? row : col;
+ const int inner = IsRowMajor ? col : row;
int start = m_outerIndex[outer];
int end = m_outerIndex[outer+1];
@@ -96,8 +96,8 @@ class MappedSparseMatrix
inline Scalar& coeffRef(int row, int col)
{
- const int outer = RowMajor ? row : col;
- const int inner = RowMajor ? col : row;
+ const int outer = IsRowMajor ? row : col;
+ const int inner = IsRowMajor ? col : row;
int start = m_outerIndex[outer];
int end = m_outerIndex[outer+1];