MOAB
4.9.3pre
|
Base class providing read/write coefficient access to matrices and arrays. More...
#include <DenseCoeffsBase.h>
Public Types | |
typedef DenseCoeffsBase < Derived, ReadOnlyAccessors > | 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 |
Public Member Functions | |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Scalar & | coeffRef (Index row, Index col) |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Scalar & | coeffRefByOuterInner (Index outer, Index inner) |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Scalar & | operator() (Index row, Index col) |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Scalar & | coeffRef (Index index) |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Scalar & | operator[] (Index index) |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Scalar & | operator() (Index index) |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Scalar & | x () |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Scalar & | y () |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Scalar & | z () |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Scalar & | w () |
Base class providing read/write coefficient access to matrices and arrays.
Derived | Type of the derived class |
WriteAccessors | Constant indicating read/write access |
This class defines the non-const operator()
function and friends, which can be used to write specific entries of a matrix or array. This class inherits DenseCoeffsBase<Derived, ReadOnlyAccessors> which defines the const variant for reading specific entries.
Definition at line 300 of file DenseCoeffsBase.h.
typedef DenseCoeffsBase<Derived, ReadOnlyAccessors> Eigen::DenseCoeffsBase< Derived, WriteAccessors >::Base |
Reimplemented from Eigen::DenseCoeffsBase< Derived, ReadOnlyAccessors >.
Reimplemented in Eigen::DenseCoeffsBase< Derived, DirectWriteAccessors >.
Definition at line 304 of file DenseCoeffsBase.h.
typedef internal::packet_traits<Scalar>::type Eigen::DenseCoeffsBase< Derived, WriteAccessors >::PacketScalar |
Reimplemented from Eigen::DenseCoeffsBase< Derived, ReadOnlyAccessors >.
Definition at line 308 of file DenseCoeffsBase.h.
typedef NumTraits<Scalar>::Real Eigen::DenseCoeffsBase< Derived, WriteAccessors >::RealScalar |
Reimplemented in Eigen::DenseCoeffsBase< Derived, DirectWriteAccessors >.
Definition at line 309 of file DenseCoeffsBase.h.
typedef internal::traits<Derived>::Scalar Eigen::DenseCoeffsBase< Derived, WriteAccessors >::Scalar |
Reimplemented from Eigen::DenseCoeffsBase< Derived, ReadOnlyAccessors >.
Reimplemented in Eigen::DenseCoeffsBase< Derived, DirectWriteAccessors >.
Definition at line 307 of file DenseCoeffsBase.h.
typedef internal::traits<Derived>::StorageKind Eigen::DenseCoeffsBase< Derived, WriteAccessors >::StorageKind |
Reimplemented from Eigen::DenseCoeffsBase< Derived, ReadOnlyAccessors >.
Definition at line 306 of file DenseCoeffsBase.h.
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Scalar& Eigen::DenseCoeffsBase< Derived, WriteAccessors >::coeffRef | ( | Index | row, |
Index | col | ||
) | [inline] |
Short version: don't use this function, use operator()(Index,Index) instead.
Long version: this function is similar to operator()(Index,Index), 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).
Definition at line 340 of file DenseCoeffsBase.h.
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Scalar& Eigen::DenseCoeffsBase< Derived, WriteAccessors >::coeffRef | ( | Index | index | ) | [inline] |
Short version: don't use this function, use operator[](Index) instead.
Long version: this function is similar to operator[](Index), 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).
Definition at line 387 of file DenseCoeffsBase.h.
{ EIGEN_STATIC_ASSERT(internal::evaluator<Derived>::Flags & LinearAccessBit, THIS_COEFFICIENT_ACCESSOR_TAKING_ONE_ACCESS_IS_ONLY_FOR_EXPRESSIONS_ALLOWING_LINEAR_ACCESS) eigen_internal_assert(index >= 0 && index < size()); return internal::evaluator<Derived>(derived()).coeffRef(index); }
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Scalar& Eigen::DenseCoeffsBase< Derived, WriteAccessors >::coeffRefByOuterInner | ( | Index | outer, |
Index | inner | ||
) | [inline] |
Definition at line 349 of file DenseCoeffsBase.h.
{ return coeffRef(rowIndexByOuterInner(outer, inner), colIndexByOuterInner(outer, inner)); }
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Scalar& Eigen::DenseCoeffsBase< Derived, WriteAccessors >::operator() | ( | Index | row, |
Index | col | ||
) | [inline] |
Definition at line 362 of file DenseCoeffsBase.h.
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Scalar& Eigen::DenseCoeffsBase< Derived, WriteAccessors >::operator() | ( | Index | index | ) | [inline] |
This is synonymous to operator[](Index).
This method is allowed only for vector expressions, and for matrix expressions having the LinearAccessBit.
Definition at line 423 of file DenseCoeffsBase.h.
{ eigen_assert(index >= 0 && index < size()); return coeffRef(index); }
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Scalar& Eigen::DenseCoeffsBase< Derived, WriteAccessors >::operator[] | ( | Index | index | ) | [inline] |
This method is allowed only for vector expressions, and for matrix expressions having the LinearAccessBit.
Definition at line 404 of file DenseCoeffsBase.h.
{ EIGEN_STATIC_ASSERT(Derived::IsVectorAtCompileTime, THE_BRACKET_OPERATOR_IS_ONLY_FOR_VECTORS__USE_THE_PARENTHESIS_OPERATOR_INSTEAD) eigen_assert(index >= 0 && index < size()); return coeffRef(index); }
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Scalar& Eigen::DenseCoeffsBase< Derived, WriteAccessors >::w | ( | ) | [inline] |
equivalent to operator[](3).
Definition at line 459 of file DenseCoeffsBase.h.
{ EIGEN_STATIC_ASSERT(Derived::SizeAtCompileTime==-1 || Derived::SizeAtCompileTime>=4, OUT_OF_RANGE_ACCESS); return (*this)[3]; }
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Scalar& Eigen::DenseCoeffsBase< Derived, WriteAccessors >::x | ( | ) | [inline] |
equivalent to operator[](0).
Definition at line 433 of file DenseCoeffsBase.h.
{ return (*this)[0]; }
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Scalar& Eigen::DenseCoeffsBase< Derived, WriteAccessors >::y | ( | ) | [inline] |
equivalent to operator[](1).
Definition at line 439 of file DenseCoeffsBase.h.
{ EIGEN_STATIC_ASSERT(Derived::SizeAtCompileTime==-1 || Derived::SizeAtCompileTime>=2, OUT_OF_RANGE_ACCESS); return (*this)[1]; }
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Scalar& Eigen::DenseCoeffsBase< Derived, WriteAccessors >::z | ( | ) | [inline] |
equivalent to operator[](2).
Definition at line 449 of file DenseCoeffsBase.h.
{ EIGEN_STATIC_ASSERT(Derived::SizeAtCompileTime==-1 || Derived::SizeAtCompileTime>=3, OUT_OF_RANGE_ACCESS); return (*this)[2]; }