Expression of a non-sequential sub-matrix defined by arbitrary sequences of row and column indices. More...
Public Types | |
typedef IndexedViewImpl< XprType, RowIndices, ColIndices, typename internal::traits< XprType >::StorageKind >::Base | Base |
typedef internal::ref_selector< XprType >::non_const_type | MatrixTypeNested |
typedef internal::remove_all_t< XprType > | NestedExpression |
Public Member Functions | |
const ColIndices & | colIndices () const |
Index | cols () const |
template<typename T0 , typename T1 > | |
IndexedView (XprType &xpr, const T0 &rowIndices, const T1 &colIndices) | |
std::remove_reference_t< XprType > & | nestedExpression () |
const internal::remove_all_t< XprType > & | nestedExpression () const |
const RowIndices & | rowIndices () const |
Index | rows () const |
Protected Attributes | |
ColIndices | m_colIndices |
RowIndices | m_rowIndices |
MatrixTypeNested | m_xpr |
Expression of a non-sequential sub-matrix defined by arbitrary sequences of row and column indices.
XprType | the type of the expression in which we are taking the intersections of sub-rows and sub-columns |
RowIndices | the type of the object defining the sequence of row indices |
ColIndices | the type of the object defining the sequence of column indices |
This class represents an expression of a sub-matrix (or sub-vector) defined as the intersection of sub-sets of rows and columns, that are themself defined by generic sequences of row indices \( \{r_0,r_1,..r_{m-1}\} \) and column indices \( \{c_0,c_1,..c_{n-1} \}\). Let \( A \) be the nested matrix, then the resulting matrix \( B \) has m
rows and n
columns, and its entries are given by: \( B(i,j) = A(r_i,c_j) \).
The RowIndices
and ColIndices
types must be compatible with the following API:
Typical supported types thus include:
In typical usages of Eigen, this class should never be used directly. It is the return type of DenseBase::operator()(const RowIndices&, const ColIndices&).
Definition at line 110 of file IndexedView.h.
typedef IndexedViewImpl<XprType, RowIndices, ColIndices, typename internal::traits<XprType>::StorageKind>::Base Eigen::IndexedView< XprType, RowIndices, ColIndices >::Base |
Definition at line 113 of file IndexedView.h.
typedef internal::ref_selector<XprType>::non_const_type Eigen::IndexedView< XprType, RowIndices, ColIndices >::MatrixTypeNested |
Definition at line 117 of file IndexedView.h.
typedef internal::remove_all_t<XprType> Eigen::IndexedView< XprType, RowIndices, ColIndices >::NestedExpression |
Definition at line 118 of file IndexedView.h.
|
inline |
Definition at line 121 of file IndexedView.h.
|
inline |
Definition at line 143 of file IndexedView.h.
|
inline |
Definition at line 129 of file IndexedView.h.
|
inline |
|
inline |
|
inline |
Definition at line 140 of file IndexedView.h.
|
inline |
|
protected |
Definition at line 148 of file IndexedView.h.
|
protected |
Definition at line 147 of file IndexedView.h.
|
protected |
Definition at line 146 of file IndexedView.h.