Base class for dense Map and Block expression with direct access. More...
Public Types | |
enum | { RowsAtCompileTime , ColsAtCompileTime , InnerStrideAtCompileTime , SizeAtCompileTime } |
typedef internal::dense_xpr_base< Derived >::type | Base |
typedef Base::CoeffReturnType | CoeffReturnType |
typedef internal::packet_traits< Scalar >::type | PacketScalar |
typedef std::conditional_t< bool(internal::is_lvalue< Derived >::value), Scalar *, const Scalar * > | PointerType |
typedef NumTraits< Scalar >::Real | RealScalar |
typedef internal::traits< Derived >::Scalar | Scalar |
typedef internal::traits< Derived >::StorageKind | StorageKind |
Public Member Functions | |
const Scalar & | coeff (Index index) const |
const Scalar & | coeff (Index rowId, Index colId) const |
const Scalar & | coeffRef (Index index) const |
const Scalar & | coeffRef (Index rowId, Index colId) const |
EIGEN_CONSTEXPR Index | cols () const EIGEN_NOEXCEPT |
const Scalar * | data () const |
MapBase (PointerType dataPtr) | |
MapBase (PointerType dataPtr, Index rows, Index cols) | |
MapBase (PointerType dataPtr, Index vecSize) | |
template<int LoadMode> | |
PacketScalar | packet (Index index) const |
template<int LoadMode> | |
PacketScalar | packet (Index rowId, Index colId) const |
EIGEN_CONSTEXPR Index | rows () const EIGEN_NOEXCEPT |
Protected Member Functions | |
template<typename T > | |
void | checkSanity (std::enable_if_t< internal::traits< T >::Alignment==0, void * >=0) const |
template<typename T > | |
void | checkSanity (std::enable_if_t<(internal::traits< T >::Alignment >0), void * >=0) const |
Protected Attributes | |
const internal::variable_if_dynamic< Index, ColsAtCompileTime > | m_cols |
PointerType | m_data |
const internal::variable_if_dynamic< Index, RowsAtCompileTime > | m_rows |
Base class for dense Map and Block expression with direct access.
This base class provides the const low-level accessors (e.g. coeff, coeffRef) of dense Map and Block objects with direct access. Typical users do not have to directly deal with this class.
This class can be extended by through the macro plugin EIGEN_MAPBASE_PLUGIN
. See customizing Eigen for details.
The Derived
class has to provide the following two methods describing the memory layout:
typedef internal::dense_xpr_base<Derived>::type Eigen::MapBase< Derived, ReadOnlyAccessors >::Base |
typedef Base::CoeffReturnType Eigen::MapBase< Derived, ReadOnlyAccessors >::CoeffReturnType |
typedef internal::packet_traits<Scalar>::type Eigen::MapBase< Derived, ReadOnlyAccessors >::PacketScalar |
typedef std::conditional_t< bool(internal::is_lvalue<Derived>::value), Scalar *, const Scalar *> Eigen::MapBase< Derived, ReadOnlyAccessors >::PointerType |
typedef NumTraits<Scalar>::Real Eigen::MapBase< Derived, ReadOnlyAccessors >::RealScalar |
typedef internal::traits<Derived>::Scalar Eigen::MapBase< Derived, ReadOnlyAccessors >::Scalar |
typedef internal::traits<Derived>::StorageKind Eigen::MapBase< Derived, ReadOnlyAccessors >::StorageKind |
anonymous enum |
Enumerator | |
---|---|
RowsAtCompileTime | |
ColsAtCompileTime | |
InnerStrideAtCompileTime | |
SizeAtCompileTime |
Definition at line 45 of file MapBase.h.
|
inlineexplicit |
Definition at line 154 of file MapBase.h.
|
inline |
Definition at line 162 of file MapBase.h.
|
inline |
Definition at line 175 of file MapBase.h.
|
inlineprotected |
|
inlineprotected |
Definition at line 194 of file MapBase.h.
|
inline |
This is an overloaded version of DenseCoeffsBase<Derived,ReadOnlyAccessors>::coeff(Index) const provided to by-pass the creation of an evaluator of the expression, thus saving compilation efforts.
See DenseCoeffsBase<Derived,ReadOnlyAccessors>::coeff(Index) const for details.
Definition at line 115 of file MapBase.h.
|
inline |
This is an overloaded version of DenseCoeffsBase<Derived,ReadOnlyAccessors>::coeff(Index,Index) const provided to by-pass the creation of an evaluator of the expression, thus saving compilation efforts.
See DenseCoeffsBase<Derived,ReadOnlyAccessors>::coeff(Index) const for details.
|
inline |
|
inline |
|
inline |
Definition at line 96 of file MapBase.h.
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 93 of file MapBase.h.
|
protected |
|
protected |
|
protected |