Base class for dense Map and Block expression with direct access. More...
#include <MapBase.h>
Public Types | |
enum | { RowsAtCompileTime = internal::traits<Derived>::RowsAtCompileTime, ColsAtCompileTime = internal::traits<Derived>::ColsAtCompileTime, InnerStrideAtCompileTime = internal::traits<Derived>::InnerStrideAtCompileTime, SizeAtCompileTime = Base::SizeAtCompileTime } |
typedef internal::dense_xpr_base< Derived >::type | Base |
typedef Base::CoeffReturnType | CoeffReturnType |
typedef internal::packet_traits< Scalar >::type | PacketScalar |
typedef internal::conditional< bool(internal::is_lvalue< Derived >::value), Scalar *, const Scalar * >::type | PointerType |
typedef NumTraits< Scalar >::Real | RealScalar |
typedef internal::traits< Derived >::Scalar | Scalar |
typedef internal::traits< Derived >::StorageKind | StorageKind |
Public Member Functions | |
const EIGEN_DEVICE_FUNC Scalar & | coeff (Index index) const |
const EIGEN_DEVICE_FUNC Scalar & | coeff (Index rowId, Index colId) const |
const EIGEN_DEVICE_FUNC Scalar & | coeffRef (Index index) const |
const EIGEN_DEVICE_FUNC Scalar & | coeffRef (Index rowId, Index colId) const |
EIGEN_DEVICE_FUNC EIGEN_CONSTEXPR Index | cols () const EIGEN_NOEXCEPT |
const EIGEN_DEVICE_FUNC Scalar * | data () const |
EIGEN_DEVICE_FUNC | MapBase (PointerType dataPtr) |
EIGEN_DEVICE_FUNC | MapBase (PointerType dataPtr, Index rows, Index cols) |
EIGEN_DEVICE_FUNC | MapBase (PointerType dataPtr, Index vecSize) |
template<int LoadMode> | |
PacketScalar | packet (Index index) const |
template<int LoadMode> | |
PacketScalar | packet (Index rowId, Index colId) const |
EIGEN_DEVICE_FUNC EIGEN_CONSTEXPR Index | rows () const EIGEN_NOEXCEPT |
Protected Member Functions | |
template<typename T > | |
EIGEN_DEVICE_FUNC void | checkSanity (typename internal::enable_if< internal::traits< T >::Alignment==0, void * >::type=0) const |
template<typename T > | |
EIGEN_DEVICE_FUNC void | checkSanity (typename internal::enable_if<(internal::traits< T >::Alignment >0), void * >::type=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 internal::conditional< bool(internal::is_lvalue<Derived>::value), Scalar *, const Scalar *>::type 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 |
|
inlineexplicit |
|
inline |
|
inline |
|
inlineprotected |
|
inlineprotected |
|
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.
|
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 |
|
inline |
|
inline |
|
inline |
|
inline |
|
protected |
|
protected |
|
protected |