Medial Code Documentation
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes
Eigen::MapBase< Derived, ReadOnlyAccessors > Class Template Reference
Inheritance diagram for Eigen::MapBase< Derived, ReadOnlyAccessors >:
Eigen::MapBase< Derived, WriteAccessors >

Public Types

enum  { RowsAtCompileTime = internal::traits<Derived>::RowsAtCompileTime , ColsAtCompileTime = internal::traits<Derived>::ColsAtCompileTime , SizeAtCompileTime = Base::SizeAtCompileTime }
 
typedef internal::dense_xpr_base< Derived >::type Base
 
typedef internal::traits< Derived >::StorageKind StorageKind
 
typedef internal::traits< Derived >::Scalar Scalar
 
typedef internal::packet_traits< Scalar >::type PacketScalar
 
typedef NumTraits< Scalar >::Real RealScalar
 
typedef internal::conditional< bool(internal::is_lvalue< Derived >::value), Scalar *, constScalar * >::type PointerType
 
typedef Base::CoeffReturnType CoeffReturnType
 

Public Member Functions

EIGEN_DEVICE_FUNC Index rows () const
 
EIGEN_DEVICE_FUNC Index cols () const
 
EIGEN_DEVICE_FUNC const Scalar * data () const
 Returns a pointer to the first coefficient of the matrix or vector.
 
EIGEN_DEVICE_FUNC const Scalar & coeff (Index rowId, Index colId) const
 
EIGEN_DEVICE_FUNC const Scalar & coeff (Index index) const
 
EIGEN_DEVICE_FUNC const Scalar & coeffRef (Index rowId, Index colId) const
 
EIGEN_DEVICE_FUNC const Scalar & coeffRef (Index index) const
 
template<int LoadMode>
PacketScalar packet (Index rowId, Index colId) const
 
template<int LoadMode>
PacketScalar packet (Index index) const
 
EIGEN_DEVICE_FUNC MapBase (PointerType dataPtr)
 
EIGEN_DEVICE_FUNC MapBase (PointerType dataPtr, Index vecSize)
 
EIGEN_DEVICE_FUNC MapBase (PointerType dataPtr, Index rows, Index cols)
 

Protected Member Functions

EIGEN_DEVICE_FUNC void checkSanity () const
 

Protected Attributes

PointerType m_data
 
const internal::variable_if_dynamic< Index, RowsAtCompileTime > m_rows
 
const internal::variable_if_dynamic< Index, ColsAtCompileTime > m_cols
 

Member Function Documentation

◆ data()

template<typename Derived >
EIGEN_DEVICE_FUNC const Scalar * Eigen::MapBase< Derived, ReadOnlyAccessors >::data ( ) const
inline

Returns a pointer to the first coefficient of the matrix or vector.

Note
When addressing this data, make sure to honor the strides returned by innerStride() and outerStride().
See also
innerStride(), outerStride()

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