Shapeworks Studio  2.1
Shape analysis software suite
List of all members | Public Types | Public Member Functions | Protected Types | Protected Attributes
Eigen::Reverse< MatrixType, Direction > Class Template Reference

Expression of the reverse of a vector or matrix. More...

#include <Reverse.h>

+ Inheritance diagram for Eigen::Reverse< MatrixType, Direction >:
+ Collaboration diagram for Eigen::Reverse< MatrixType, Direction >:

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

MatrixType::Nested m_matrix
 

Detailed Description

template<typename MatrixType, int Direction>
class Eigen::Reverse< MatrixType, Direction >

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

Definition at line 70 of file Reverse.h.


The documentation for this class was generated from the following file: