From 6a4e94f349fc2cf5de8666fa8129b91b429be7f0 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Mon, 11 May 2009 10:59:27 +0000 Subject: [PATCH] bugfix from Jens Mueller (s/RowMajor/IsRowMajor) --- Eigen/src/Sparse/MappedSparseMatrix.h | 8 ++++---- 1 file 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];