Main MRPT website > C++ reference
MRPT logo
Public Types | Public Member Functions
Eigen::DenseCoeffsBase< Derived, WriteAccessors > Class Reference

Detailed Description

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

Template Parameters:
DerivedType of the derived class
WriteAccessorsConstant 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.

See also:
DenseCoeffsBase<Derived, DirectAccessors>, TopicClassHierarchy
Inheritance diagram for Eigen::DenseCoeffsBase< Derived, WriteAccessors >:
Inheritance graph
[legend]

List of all members.

Public Types

typedef DenseCoeffsBase
< Derived, ReadOnlyAccessors > 
Base
typedef internal::traits
< Derived >::StorageKind 
StorageKind
typedef internal::traits
< Derived >::Index 
Index
typedef internal::traits
< Derived >::Scalar 
Scalar
typedef
internal::packet_traits
< Scalar >::type 
PacketScalar
typedef NumTraits< Scalar >::Real RealScalar

Public Member Functions

EIGEN_STRONG_INLINE Scalar & coeffRef (Index row, Index col)
 Short version: don't use this function, use operator()(Index,Index) instead.
EIGEN_STRONG_INLINE Scalar & coeffRefByOuterInner (Index outer, Index inner)
EIGEN_STRONG_INLINE Scalar & operator() (Index row, Index col)
EIGEN_STRONG_INLINE Scalar & coeffRef (Index index)
 Short version: don't use this function, use operator[](Index) instead.
EIGEN_STRONG_INLINE Scalar & operator[] (Index index)
EIGEN_STRONG_INLINE Scalar & operator() (Index index)
EIGEN_STRONG_INLINE Scalar & x ()
 equivalent to operator[](0).
EIGEN_STRONG_INLINE Scalar & y ()
 equivalent to operator[](1).
EIGEN_STRONG_INLINE Scalar & z ()
 equivalent to operator[](2).
EIGEN_STRONG_INLINE Scalar & w ()
 equivalent to operator[](3).
template<int StoreMode>
EIGEN_STRONG_INLINE void writePacket (Index row, Index col, const typename internal::packet_traits< Scalar >::type &x)
template<int StoreMode>
EIGEN_STRONG_INLINE void writePacketByOuterInner (Index outer, Index inner, const typename internal::packet_traits< Scalar >::type &x)
template<int StoreMode>
EIGEN_STRONG_INLINE void writePacket (Index index, const typename internal::packet_traits< Scalar >::type &x)

Member Typedef Documentation

typedef DenseCoeffsBase<Derived, ReadOnlyAccessors> Eigen::DenseCoeffsBase< Derived, WriteAccessors >::Base
typedef internal::traits<Derived>::Index Eigen::DenseCoeffsBase< Derived, WriteAccessors >::Index
typedef internal::packet_traits<Scalar>::type Eigen::DenseCoeffsBase< Derived, WriteAccessors >::PacketScalar

Reimplemented from Eigen::DenseCoeffsBase< Derived, ReadOnlyAccessors >.

Definition at line 297 of file Core.

typedef NumTraits<Scalar>::Real Eigen::DenseCoeffsBase< Derived, WriteAccessors >::RealScalar

Reimplemented in Eigen::DenseCoeffsBase< Derived, DirectWriteAccessors >.

Definition at line 298 of file Core.

typedef internal::traits<Derived>::Scalar Eigen::DenseCoeffsBase< Derived, WriteAccessors >::Scalar
typedef internal::traits<Derived>::StorageKind Eigen::DenseCoeffsBase< Derived, WriteAccessors >::StorageKind

Reimplemented from Eigen::DenseCoeffsBase< Derived, ReadOnlyAccessors >.

Definition at line 294 of file Core.


Member Function Documentation

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).

See also:
operator()(Index,Index), coeff(Index, Index) const, coeffRef(Index)

Definition at line 328 of file Core.

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).

See also:
operator[](Index), coeff(Index) const, coeffRef(Index,Index)

Definition at line 372 of file Core.

EIGEN_STRONG_INLINE Scalar& Eigen::DenseCoeffsBase< Derived, WriteAccessors >::coeffRefByOuterInner ( Index  outer,
Index  inner 
) [inline]

Definition at line 336 of file Core.

EIGEN_STRONG_INLINE Scalar& Eigen::DenseCoeffsBase< Derived, WriteAccessors >::operator() ( Index  row,
Index  col 
) [inline]
Returns:
a reference to the coefficient at given the given row and column.
See also:
operator[](Index)

Definition at line 348 of file Core.

EIGEN_STRONG_INLINE Scalar& Eigen::DenseCoeffsBase< Derived, WriteAccessors >::operator() ( Index  index) [inline]
Returns:
a reference to the coefficient at given index.

This is synonymous to operator[](Index).

This method is allowed only for vector expressions, and for matrix expressions having the LinearAccessBit.

See also:
operator[](Index) const, operator()(Index,Index), x(), y(), z(), w()

Definition at line 406 of file Core.

EIGEN_STRONG_INLINE Scalar& Eigen::DenseCoeffsBase< Derived, WriteAccessors >::operator[] ( Index  index) [inline]
Returns:
a reference to the coefficient at given index.

This method is allowed only for vector expressions, and for matrix expressions having the LinearAccessBit.

See also:
operator[](Index) const, operator()(Index,Index), x(), y(), z(), w()

Definition at line 386 of file Core.

EIGEN_STRONG_INLINE Scalar& Eigen::DenseCoeffsBase< Derived, WriteAccessors >::w ( ) [inline]

equivalent to operator[](3).

Definition at line 430 of file Core.

template<int StoreMode>
EIGEN_STRONG_INLINE void Eigen::DenseCoeffsBase< Derived, WriteAccessors >::writePacket ( Index  row,
Index  col,
const typename internal::packet_traits< Scalar >::type &  x 
) [inline]

Definition at line 444 of file Core.

template<int StoreMode>
EIGEN_STRONG_INLINE void Eigen::DenseCoeffsBase< Derived, WriteAccessors >::writePacket ( Index  index,
const typename internal::packet_traits< Scalar >::type &  x 
) [inline]

Definition at line 473 of file Core.

template<int StoreMode>
EIGEN_STRONG_INLINE void Eigen::DenseCoeffsBase< Derived, WriteAccessors >::writePacketByOuterInner ( Index  outer,
Index  inner,
const typename internal::packet_traits< Scalar >::type &  x 
) [inline]

Definition at line 455 of file Core.

EIGEN_STRONG_INLINE Scalar& Eigen::DenseCoeffsBase< Derived, WriteAccessors >::x ( ) [inline]

equivalent to operator[](0).

Definition at line 415 of file Core.

EIGEN_STRONG_INLINE Scalar& Eigen::DenseCoeffsBase< Derived, WriteAccessors >::y ( ) [inline]

equivalent to operator[](1).

Definition at line 420 of file Core.

EIGEN_STRONG_INLINE Scalar& Eigen::DenseCoeffsBase< Derived, WriteAccessors >::z ( ) [inline]

equivalent to operator[](2).

Definition at line 425 of file Core.




Page generated by Doxygen 1.7.5 for MRPT 0.9.5 SVN: at Sun Oct 16 12:16:33 UTC 2011