Prusa Slicer 2.6.0
Loading...
Searching...
No Matches
Eigen::Reverse< MatrixType, Direction > Class Template Reference

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

#include <src/eigen/Eigen/src/Core/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
 
typedef internal::remove_all< MatrixType >::type NestedExpression
 

Public Member Functions

EIGEN_DEVICE_FUNC Reverse (const MatrixType &matrix)
 
EIGEN_DEVICE_FUNC Index rows () const
 
EIGEN_DEVICE_FUNC Index cols () const
 
EIGEN_DEVICE_FUNC Index innerStride () const
 
EIGEN_DEVICE_FUNC const internal::remove_all< typenameMatrixType::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, ReversePacketreverse_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.

Template Parameters
MatrixTypethe type of the object of which we are taking the reverse
Directiondefines the direction of the reverse operation, can be Vertical, Horizontal, or BothDirections

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

Member Typedef Documentation

◆ Base

template<typename MatrixType , int Direction>
typedef internal::dense_xpr_base<Reverse>::type Eigen::Reverse< MatrixType, Direction >::Base

◆ NestedExpression

template<typename MatrixType , int Direction>
typedef internal::remove_all<MatrixType>::type Eigen::Reverse< MatrixType, Direction >::NestedExpression

◆ reverse_packet

template<typename MatrixType , int Direction>
typedef internal::reverse_packet_cond<PacketScalar,ReversePacket> Eigen::Reverse< MatrixType, Direction >::reverse_packet
protected

Member Enumeration Documentation

◆ anonymous enum

template<typename MatrixType , int Direction>
anonymous enum
protected
Enumerator
PacketSize 
IsColMajor 
ReverseRow 
ReverseCol 
OffsetRow 
OffsetCol 
ReversePacket 
74 {
76 IsColMajor = !IsRowMajor,
77 ReverseRow = (Direction == Vertical) || (Direction == BothDirections),
78 ReverseCol = (Direction == Horizontal) || (Direction == BothDirections),
80 OffsetCol = ReverseCol && IsRowMajor ? PacketSize : 1,
82 || ((Direction == Vertical) && IsColMajor)
83 || ((Direction == Horizontal) && IsRowMajor)
84 };
@ OffsetCol
Definition Reverse.h:80
@ ReversePacket
Definition Reverse.h:81
@ ReverseRow
Definition Reverse.h:77
@ PacketSize
Definition Reverse.h:75
@ ReverseCol
Definition Reverse.h:78
@ OffsetRow
Definition Reverse.h:79
@ IsColMajor
Definition Reverse.h:76
@ BothDirections
Definition Constants.h:271
@ Horizontal
Definition Constants.h:268
@ Vertical
Definition Constants.h:265
Direction
Definition clipper.cpp:67
@ size
Definition GenericPacketMath.h:102

Constructor & Destructor Documentation

◆ Reverse()

template<typename MatrixType , int Direction>
EIGEN_DEVICE_FUNC Eigen::Reverse< MatrixType, Direction >::Reverse ( const MatrixType &  matrix)
inlineexplicit
88: m_matrix(matrix) { }
MatrixType::Nested m_matrix
Definition Reverse.h:107

Member Function Documentation

◆ cols()

template<typename MatrixType , int Direction>
EIGEN_DEVICE_FUNC Index Eigen::Reverse< MatrixType, Direction >::cols ( ) const
inline

◆ innerStride()

template<typename MatrixType , int Direction>
EIGEN_DEVICE_FUNC Index Eigen::Reverse< MatrixType, Direction >::innerStride ( ) const
inline
96 {
97 return -m_matrix.innerStride();
98 }

References Eigen::Reverse< MatrixType, Direction >::m_matrix.

◆ nestedExpression()

template<typename MatrixType , int Direction>
EIGEN_DEVICE_FUNC const internal::remove_all< typenameMatrixType::Nested >::type & Eigen::Reverse< MatrixType, Direction >::nestedExpression ( ) const
inline
102 {
103 return m_matrix;
104 }

References Eigen::Reverse< MatrixType, Direction >::m_matrix.

◆ rows()

template<typename MatrixType , int Direction>
EIGEN_DEVICE_FUNC Index Eigen::Reverse< MatrixType, Direction >::rows ( ) const
inline

Member Data Documentation

◆ m_matrix


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