aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/SparseCore/SparseView.h
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2015-09-03 14:53:51 +0200
committerGravatar Gael Guennebaud <g.gael@free.fr>2015-09-03 14:53:51 +0200
commita835dfca73a3fd00bf5ad4108f7c633f67414384 (patch)
treea7a6fec1fecab72bcf7f0e582b3df2c1c71b53ff /Eigen/src/SparseCore/SparseView.h
parent941a99ac1aba69d26ce56286b1a04edfd07ec5cb (diff)
InnerIterator::index() should really return a StorageIndex
Diffstat (limited to 'Eigen/src/SparseCore/SparseView.h')
-rw-r--r--Eigen/src/SparseCore/SparseView.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/Eigen/src/SparseCore/SparseView.h b/Eigen/src/SparseCore/SparseView.h
index dc054fbd1..761e72038 100644
--- a/Eigen/src/SparseCore/SparseView.h
+++ b/Eigen/src/SparseCore/SparseView.h
@@ -127,6 +127,7 @@ struct unary_evaluator<SparseView<ArgType>, IndexBased>
protected:
enum { IsRowMajor = (XprType::Flags&RowMajorBit)==RowMajorBit };
typedef typename XprType::Scalar Scalar;
+ typedef typename XprType::StorageIndex StorageIndex;
public:
class InnerIterator
@@ -152,7 +153,7 @@ struct unary_evaluator<SparseView<ArgType>, IndexBased>
: m_sve.m_argImpl.coeff(m_inner, m_outer);
}
- EIGEN_STRONG_INLINE Index index() const { return m_inner; }
+ EIGEN_STRONG_INLINE StorageIndex index() const { return m_inner; }
inline Index row() const { return IsRowMajor ? m_outer : index(); }
inline Index col() const { return IsRowMajor ? index() : m_outer; }