template<typename Derived>
MapBase<Derived, ReadOnlyAccessors> class
Base class for dense Map and Block expression with direct access.
Contents
- Reference
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: Index innerStride() const;
Index outerStride() const;
Derived classes
-
template<typename Derived>class MapBase<Derived, WriteAccessors>
- Base class for non-const dense Map and Block expression with direct access.
Public functions
- auto coeff(Index rowId, Index colId) const -> const Scalar&
- auto coeff(Index index) const -> const Scalar&
- auto coeffRef(Index rowId, Index colId) const -> const Scalar&
- auto coeffRef(Index index) const -> const Scalar&
- auto cols() const -> Index
- auto data() const -> const Scalar*
- auto rows() const -> Index
Function documentation
template<typename Derived>
const Scalar& Eigen:: MapBase<Derived, ReadOnlyAccessors><Derived>:: coeff(Index rowId,
Index colId) const
This is an overloaded version of DenseCoeffsBase<Derived,ReadOnlyAccessors>::
See DenseCoeffsBase<Derived,ReadOnlyAccessors>::
template<typename Derived>
const Scalar& Eigen:: MapBase<Derived, ReadOnlyAccessors><Derived>:: coeff(Index index) const
This is an overloaded version of DenseCoeffsBase<Derived,ReadOnlyAccessors>::
See DenseCoeffsBase<Derived,ReadOnlyAccessors>::
template<typename Derived>
const Scalar* Eigen:: MapBase<Derived, ReadOnlyAccessors><Derived>:: data() const
Returns a pointer to the first coefficient of the matrix or vector.