template<typename Derived>
Eigen::DenseCoeffsBase<Derived, DirectWriteAccessors> class

Base class providing direct read/write coefficient access to matrices and arrays.

Template parameters
Derived Type of the derived class

This class defines functions to work with strides which can be used to access entries directly. This class inherits DenseCoeffsBase<Derived, WriteAccessors> which defines functions to access entries read/write using operator().

Base classes

template<typename Derived>
class DenseCoeffsBase<Derived, WriteAccessors>
Base class providing read/write coefficient access to matrices and arrays.

Derived classes

template<typename Derived>
class DenseBase
Base class for all dense matrices, vectors, and arrays.

Public functions

auto cols() const -> Index
auto colStride() const -> Index
auto derived() -> Derived&
auto derived() const -> const Derived&
auto innerStride() const -> Index
auto outerStride() const -> Index
auto rows() const -> Index
auto rowStride() const -> Index
auto size() const -> Index

Function documentation

template<typename Derived>
Index Eigen::DenseCoeffsBase<Derived, DirectWriteAccessors><Derived>::cols() const

Returns the number of columns.

template<typename Derived>
Index Eigen::DenseCoeffsBase<Derived, DirectWriteAccessors><Derived>::colStride() const

Returns the pointer increment between two consecutive columns.

template<typename Derived>
Derived& Eigen::DenseCoeffsBase<Derived, DirectWriteAccessors><Derived>::derived()

Returns a reference to the derived object

template<typename Derived>
const Derived& Eigen::DenseCoeffsBase<Derived, DirectWriteAccessors><Derived>::derived() const

Returns a const reference to the derived object

template<typename Derived>
Index Eigen::DenseCoeffsBase<Derived, DirectWriteAccessors><Derived>::innerStride() const

Returns the pointer increment between two consecutive elements within a slice in the inner direction.

template<typename Derived>
Index Eigen::DenseCoeffsBase<Derived, DirectWriteAccessors><Derived>::outerStride() const

Returns the pointer increment between two consecutive inner slices (for example, between two consecutive columns in a column-major matrix).

template<typename Derived>
Index Eigen::DenseCoeffsBase<Derived, DirectWriteAccessors><Derived>::rows() const

Returns the number of rows.

template<typename Derived>
Index Eigen::DenseCoeffsBase<Derived, DirectWriteAccessors><Derived>::rowStride() const

Returns the pointer increment between two consecutive rows.

template<typename Derived>
Index Eigen::DenseCoeffsBase<Derived, DirectWriteAccessors><Derived>::size() const

Returns the number of coefficients, which is rows()*cols().