Eigen::internal::IndexedViewImpl< XprType, RowIndices, ColIndices, StorageKind, DirectAccess > Class Template Reference

#include <IndexedView.h>

+ Inheritance diagram for Eigen::internal::IndexedViewImpl< XprType, RowIndices, ColIndices, StorageKind, DirectAccess >:

Public Types

typedef internal::generic_xpr_base< IndexedView< XprType, RowIndices, ColIndices > >::type Base
 
typedef internal::ref_selector< XprType >::non_const_type MatrixTypeNested
 
typedef internal::remove_all_t< XprTypeNestedExpression
 
typedef XprType::Scalar Scalar
 

Public Member Functions

template<typename T0 , typename T1 >
 IndexedViewImpl (XprType &xpr, const T0 &rowIndices, const T1 &colIndices)
 
Index rows () const
 
Index cols () const
 
const internal::remove_all_t< XprType > & nestedExpression () const
 
std::remove_reference_t< XprType > & nestedExpression ()
 
const RowIndices & rowIndices () const
 
const ColIndices & colIndices () const
 
constexpr ScalarcoeffRef (Index rowId, Index colId)
 
constexpr const ScalarcoeffRef (Index rowId, Index colId) const
 

Protected Attributes

MatrixTypeNested m_xpr
 
RowIndices m_rowIndices
 
ColIndices m_colIndices
 

Member Typedef Documentation

◆ Base

template<typename XprType , typename RowIndices , typename ColIndices , typename StorageKind , bool DirectAccess>
typedef internal::generic_xpr_base<IndexedView<XprType, RowIndices, ColIndices> >::type Eigen::internal::IndexedViewImpl< XprType, RowIndices, ColIndices, StorageKind, DirectAccess >::Base

◆ MatrixTypeNested

template<typename XprType , typename RowIndices , typename ColIndices , typename StorageKind , bool DirectAccess>
typedef internal::ref_selector<XprType>::non_const_type Eigen::internal::IndexedViewImpl< XprType, RowIndices, ColIndices, StorageKind, DirectAccess >::MatrixTypeNested

◆ NestedExpression

template<typename XprType , typename RowIndices , typename ColIndices , typename StorageKind , bool DirectAccess>
typedef internal::remove_all_t<XprType> Eigen::internal::IndexedViewImpl< XprType, RowIndices, ColIndices, StorageKind, DirectAccess >::NestedExpression

◆ Scalar

template<typename XprType , typename RowIndices , typename ColIndices , typename StorageKind , bool DirectAccess>
typedef XprType::Scalar Eigen::internal::IndexedViewImpl< XprType, RowIndices, ColIndices, StorageKind, DirectAccess >::Scalar

Constructor & Destructor Documentation

◆ IndexedViewImpl()

template<typename XprType , typename RowIndices , typename ColIndices , typename StorageKind , bool DirectAccess>
template<typename T0 , typename T1 >
Eigen::internal::IndexedViewImpl< XprType, RowIndices, ColIndices, StorageKind, DirectAccess >::IndexedViewImpl ( XprType xpr,
const T0 &  rowIndices,
const T1 &  colIndices 
)
inline
const RowIndices & rowIndices() const
Definition: IndexedView.h:167
MatrixTypeNested m_xpr
Definition: IndexedView.h:181
RowIndices m_rowIndices
Definition: IndexedView.h:182
const ColIndices & colIndices() const
Definition: IndexedView.h:170
ColIndices m_colIndices
Definition: IndexedView.h:183

Member Function Documentation

◆ coeffRef() [1/2]

template<typename XprType , typename RowIndices , typename ColIndices , typename StorageKind , bool DirectAccess>
constexpr Scalar& Eigen::internal::IndexedViewImpl< XprType, RowIndices, ColIndices, StorageKind, DirectAccess >::coeffRef ( Index  rowId,
Index  colId 
)
inlineconstexpr
172  {
173  return nestedExpression().coeffRef(m_rowIndices[rowId], m_colIndices[colId]);
174  }
const internal::remove_all_t< XprType > & nestedExpression() const
Definition: IndexedView.h:161

◆ coeffRef() [2/2]

template<typename XprType , typename RowIndices , typename ColIndices , typename StorageKind , bool DirectAccess>
constexpr const Scalar& Eigen::internal::IndexedViewImpl< XprType, RowIndices, ColIndices, StorageKind, DirectAccess >::coeffRef ( Index  rowId,
Index  colId 
) const
inlineconstexpr
176  {
177  return nestedExpression().coeffRef(m_rowIndices[rowId], m_colIndices[colId]);
178  }

◆ colIndices()

template<typename XprType , typename RowIndices , typename ColIndices , typename StorageKind , bool DirectAccess>
const ColIndices& Eigen::internal::IndexedViewImpl< XprType, RowIndices, ColIndices, StorageKind, DirectAccess >::colIndices ( ) const
inline
Returns
a const reference to the object storing/generating the column indices
170 { return m_colIndices; }

◆ cols()

template<typename XprType , typename RowIndices , typename ColIndices , typename StorageKind , bool DirectAccess>
Index Eigen::internal::IndexedViewImpl< XprType, RowIndices, ColIndices, StorageKind, DirectAccess >::cols ( ) const
inline

◆ nestedExpression() [1/2]

template<typename XprType , typename RowIndices , typename ColIndices , typename StorageKind , bool DirectAccess>
std::remove_reference_t<XprType>& Eigen::internal::IndexedViewImpl< XprType, RowIndices, ColIndices, StorageKind, DirectAccess >::nestedExpression ( )
inline
Returns
the nested expression
164 { return m_xpr; }

◆ nestedExpression() [2/2]

template<typename XprType , typename RowIndices , typename ColIndices , typename StorageKind , bool DirectAccess>
const internal::remove_all_t<XprType>& Eigen::internal::IndexedViewImpl< XprType, RowIndices, ColIndices, StorageKind, DirectAccess >::nestedExpression ( ) const
inline
Returns
the nested expression
161 { return m_xpr; }

◆ rowIndices()

template<typename XprType , typename RowIndices , typename ColIndices , typename StorageKind , bool DirectAccess>
const RowIndices& Eigen::internal::IndexedViewImpl< XprType, RowIndices, ColIndices, StorageKind, DirectAccess >::rowIndices ( ) const
inline
Returns
a const reference to the object storing/generating the row indices
167 { return m_rowIndices; }

◆ rows()

template<typename XprType , typename RowIndices , typename ColIndices , typename StorageKind , bool DirectAccess>
Index Eigen::internal::IndexedViewImpl< XprType, RowIndices, ColIndices, StorageKind, DirectAccess >::rows ( ) const
inline

Member Data Documentation

◆ m_colIndices

template<typename XprType , typename RowIndices , typename ColIndices , typename StorageKind , bool DirectAccess>
ColIndices Eigen::internal::IndexedViewImpl< XprType, RowIndices, ColIndices, StorageKind, DirectAccess >::m_colIndices
protected

◆ m_rowIndices

template<typename XprType , typename RowIndices , typename ColIndices , typename StorageKind , bool DirectAccess>
RowIndices Eigen::internal::IndexedViewImpl< XprType, RowIndices, ColIndices, StorageKind, DirectAccess >::m_rowIndices
protected

◆ m_xpr

template<typename XprType , typename RowIndices , typename ColIndices , typename StorageKind , bool DirectAccess>
MatrixTypeNested Eigen::internal::IndexedViewImpl< XprType, RowIndices, ColIndices, StorageKind, DirectAccess >::m_xpr
protected

The documentation for this class was generated from the following file: