![]() |
|
Base class providing read-only coefficient access to matrices and arrays. More...
#include <DenseCoeffsBase.h>
Public Types | |
typedef internal::traits< Derived >::StorageKind | StorageKind |
typedef internal::traits< Derived >::Scalar | Scalar |
typedef internal::packet_traits< Scalar >::type | PacketScalar |
typedef std::conditional_t< bool(internal::traits< Derived >::Flags &LvalueBit), const Scalar &, std::conditional_t< internal::is_arithmetic< Scalar >::value, Scalar, const Scalar > > | CoeffReturnType |
typedef internal::add_const_on_value_type_if_arithmetic< typename internal::packet_traits< Scalar >::type >::type | PacketReturnType |
typedef EigenBase< Derived > | Base |
![]() | |
typedef Eigen::Index | Index |
The interface type of indices. More... | |
typedef internal::traits< Derived >::StorageKind | StorageKind |
Protected Member Functions | |
void | coeffRef () |
void | coeffRefByOuterInner () |
void | writePacket () |
void | writePacketByOuterInner () |
void | copyCoeff () |
void | copyCoeffByOuterInner () |
void | copyPacket () |
void | copyPacketByOuterInner () |
void | stride () |
void | innerStride () |
void | outerStride () |
void | rowStride () |
void | colStride () |
Base class providing read-only coefficient access to matrices and arrays.
Derived | Type of the derived class |
This class defines the operator()
const
function and friends, which can be used to read specific entries of a matrix or array.
typedef EigenBase<Derived> Eigen::DenseCoeffsBase< Derived, ReadOnlyAccessors >::Base |
typedef std::conditional_t<bool(internal::traits<Derived>::Flags& LvalueBit), const Scalar&, std::conditional_t<internal::is_arithmetic<Scalar>::value, Scalar, const Scalar> > Eigen::DenseCoeffsBase< Derived, ReadOnlyAccessors >::CoeffReturnType |
typedef internal::add_const_on_value_type_if_arithmetic<typename internal::packet_traits<Scalar>::type>::type Eigen::DenseCoeffsBase< Derived, ReadOnlyAccessors >::PacketReturnType |
typedef internal::packet_traits<Scalar>::type Eigen::DenseCoeffsBase< Derived, ReadOnlyAccessors >::PacketScalar |
typedef internal::traits<Derived>::Scalar Eigen::DenseCoeffsBase< Derived, ReadOnlyAccessors >::Scalar |
typedef internal::traits<Derived>::StorageKind Eigen::DenseCoeffsBase< Derived, ReadOnlyAccessors >::StorageKind |
|
inline |
Short version: don't use this function, use operator[](Index) const instead.
Long version: this function is similar to operator[](Index) const , but without the assertion. Use this for limiting the performance cost of debugging code when doing repeated coefficient access. Only use this when it is guaranteed that the parameter index is in range.
If EIGEN_INTERNAL_DEBUGGING is defined, an assertion will be made, making this function equivalent to operator[](Index) const .
References eigen_internal_assert, EIGEN_STATIC_ASSERT, Eigen::LinearAccessBit, and size.
|
inline |
Short version: don't use this function, use operator()(Index,Index) const instead.
Long version: this function is similar to operator()(Index,Index) const , but without the assertion. Use this for limiting the performance cost of debugging code when doing repeated coefficient access. Only use this when it is guaranteed that the parameters row and col are in range.
If EIGEN_INTERNAL_DEBUGGING is defined, an assertion will be made, making this function equivalent to operator()(Index,Index) const .
References col(), cols, eigen_internal_assert, row(), and rows.
|
inline |
|
protected |
|
protected |
|
inline |
References int(), and Eigen::RowMajorBit.
|
inline |
Referenced by gdb.printers._MatrixEntryIterator::__next__(), gdb.printers.EigenMatrixPrinter::children(), gdb.printers.EigenSparseMatrixPrinter::children(), gdb.printers.EigenMatrixPrinter::to_string(), and gdb.printers.EigenSparseMatrixPrinter::to_string().
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
inlineconstexpr |
|
inlineconstexpr |
|
protected |
|
inline |
This is synonymous to operator[](Index) const.
This method is allowed only for vector expressions, and for matrix expressions having the LinearAccessBit.
References eigen_assert, and size.
|
inline |
|
inline |
This method is allowed only for vector expressions, and for matrix expressions having the LinearAccessBit.
References eigen_assert, EIGEN_STATIC_ASSERT, and size.
|
protected |
|
inline |
The LoadMode parameter may have the value Aligned or Unaligned. Its effect is to select the appropriate vectorization instruction. Aligned access is faster, but is only possible for packets starting at an address which is a multiple of the packet size.
References eigen_internal_assert, EIGEN_STATIC_ASSERT, Eigen::LinearAccessBit, and size.
|
inline |
The LoadMode parameter may have the value Aligned or Unaligned. Its effect is to select the appropriate vectorization instruction. Aligned access is faster, but is only possible for packets starting at an address which is a multiple of the packet size.
References col(), cols, eigen_internal_assert, row(), and rows.
|
inline |
|
inline |
References int(), and Eigen::RowMajorBit.
|
inline |
Referenced by gdb.printers._MatrixEntryIterator::__next__(), gdb.printers.EigenMatrixPrinter::children(), gdb.printers.EigenSparseMatrixPrinter::children(), gdb.printers.EigenMatrixPrinter::to_string(), and gdb.printers.EigenSparseMatrixPrinter::to_string().
|
protected |
|
inline |
|
protected |
|
inline |
equivalent to operator[](3).
References EIGEN_STATIC_ASSERT.
|
protected |
|
protected |
|
inline |
|
inline |
equivalent to operator[](1).
References EIGEN_STATIC_ASSERT.
|
inline |
equivalent to operator[](2).
References EIGEN_STATIC_ASSERT.