diff options
author | Gael Guennebaud <g.gael@free.fr> | 2017-01-06 21:53:32 +0100 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2017-01-06 21:53:32 +0100 |
commit | 3264d3c761e6b08101e7577b4278119dea42ec09 (patch) | |
tree | c3ccee6cab6e28143dd61e5b0661d1580c2d0557 /Eigen/src/Core/IndexedView.h | |
parent | a875167d99cffa76a662de5475627d60238f0f36 (diff) |
Add support for plain-array as indices, e.g., mat({1,2,3,4})
Diffstat (limited to 'Eigen/src/Core/IndexedView.h')
-rw-r--r-- | Eigen/src/Core/IndexedView.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Eigen/src/Core/IndexedView.h b/Eigen/src/Core/IndexedView.h index 26c048584..5ff1c1837 100644 --- a/Eigen/src/Core/IndexedView.h +++ b/Eigen/src/Core/IndexedView.h @@ -70,8 +70,8 @@ public: IndexedView(XprType& xpr, const T0& rowIndices, const T1& colIndices) : m_xpr(xpr), m_rowIndices(rowIndices), m_colIndices(colIndices) {} - Index rows() const { return m_rowIndices.size(); } - Index cols() const { return m_colIndices.size(); } + Index rows() const { return internal::size(m_rowIndices); } + Index cols() const { return internal::size(m_colIndices); } /** \returns the nested expression */ const typename internal::remove_all<XprType>::type& |