mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Add support for plain-array as indices, e.g., mat({1,2,3,4})
This commit is contained in:
@@ -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&
|
||||
|
||||
Reference in New Issue
Block a user