Main MRPT website > C++ reference
MRPT logo
Public Types | Public Member Functions | Protected Types | Protected Attributes
Eigen::Reverse Class Reference

Detailed Description

Expression of the reverse of a vector or matrix.

Parameters:
MatrixTypethe type of the object of which we are taking the reverse

This class represents an expression of the reverse of a vector. It is the return type of MatrixBase::reverse() and VectorwiseOp::reverse() and most of the time this is the only way it is used.

See also:
MatrixBase::reverse(), VectorwiseOp::reverse()

List of all members.

Public Types

typedef
internal::dense_xpr_base
< Reverse >::type 
Base

Public Member Functions

 Reverse (const MatrixType &matrix)
Index rows () const
Index cols () const
Index innerStride () const
Scalar & operator() (Index row, Index col)
Scalar & coeffRef (Index row, Index col)
CoeffReturnType coeff (Index row, Index col) const
CoeffReturnType coeff (Index index) const
Scalar & coeffRef (Index index)
Scalar & operator() (Index index)
template<int LoadMode>
const PacketScalar packet (Index row, Index col) const
template<int LoadMode>
void writePacket (Index row, Index col, const PacketScalar &x)
template<int LoadMode>
const PacketScalar packet (Index index) const
template<int LoadMode>
void writePacket (Index index, const PacketScalar &x)
const internal::remove_all
< typename MatrixType::Nested >
::type & 
nestedExpression () const

Protected Types

enum  {
  PacketSize = internal::packet_traits<Scalar>::size, IsColMajor = !IsRowMajor, ReverseRow = (Direction == Vertical) || (Direction == BothDirections), ReverseCol = (Direction == Horizontal) || (Direction == BothDirections),
  OffsetRow = ReverseRow && IsColMajor ? PacketSize : 1, OffsetCol = ReverseCol && IsRowMajor ? PacketSize : 1, ReversePacket
}
typedef
internal::reverse_packet_cond
< PacketScalar, ReversePacket > 
reverse_packet

Protected Attributes

const MatrixType::Nested m_matrix

Member Typedef Documentation

Definition at line 89 of file Core.

typedef internal::reverse_packet_cond<PacketScalar,ReversePacket> Eigen::Reverse::reverse_packet [protected]

Definition at line 109 of file Core.


Member Enumeration Documentation

anonymous enum [protected]
Enumerator:
PacketSize 
IsColMajor 
ReverseRow 
ReverseCol 
OffsetRow 
OffsetCol 
ReversePacket 

Definition at line 98 of file Core.


Constructor & Destructor Documentation

Eigen::Reverse::Reverse ( const MatrixType &  matrix) [inline]

Definition at line 112 of file Core.


Member Function Documentation

CoeffReturnType Eigen::Reverse::coeff ( Index  row,
Index  col 
) const [inline]

Definition at line 136 of file Core.

CoeffReturnType Eigen::Reverse::coeff ( Index  index) const [inline]

Definition at line 142 of file Core.

Scalar& Eigen::Reverse::coeffRef ( Index  row,
Index  col 
) [inline]

Definition at line 130 of file Core.

Scalar& Eigen::Reverse::coeffRef ( Index  index) [inline]

Definition at line 147 of file Core.

Index Eigen::Reverse::cols ( void  ) const [inline]

Definition at line 117 of file Core.

Index Eigen::Reverse::innerStride ( ) const [inline]

Definition at line 119 of file Core.

const internal::remove_all<typename MatrixType::Nested>::type& Eigen::Reverse::nestedExpression ( ) const [inline]

Definition at line 188 of file Core.

Scalar& Eigen::Reverse::operator() ( Index  row,
Index  col 
) [inline]

Definition at line 124 of file Core.

Scalar& Eigen::Reverse::operator() ( Index  index) [inline]

Definition at line 152 of file Core.

template<int LoadMode>
const PacketScalar Eigen::Reverse::packet ( Index  row,
Index  col 
) const [inline]

Definition at line 159 of file Core.

template<int LoadMode>
const PacketScalar Eigen::Reverse::packet ( Index  index) const [inline]

Definition at line 176 of file Core.

Index Eigen::Reverse::rows ( void  ) const [inline]

Definition at line 116 of file Core.

template<int LoadMode>
void Eigen::Reverse::writePacket ( Index  row,
Index  col,
const PacketScalar &  x 
) [inline]

Definition at line 167 of file Core.

template<int LoadMode>
void Eigen::Reverse::writePacket ( Index  index,
const PacketScalar &  x 
) [inline]

Definition at line 182 of file Core.


Member Data Documentation

const MatrixType::Nested Eigen::Reverse::m_matrix [protected]

Definition at line 194 of file Core.




Page generated by Doxygen 1.7.5 for MRPT 0.9.5 SVN: at Thu Oct 13 21:25:36 UTC 2011