Go to the documentation of this file.
12 #ifndef EIGEN_REVERSE_H
13 #define EIGEN_REVERSE_H
19 template<
typename MatrixType,
int Direction>
29 RowsAtCompileTime = MatrixType::RowsAtCompileTime,
30 ColsAtCompileTime = MatrixType::ColsAtCompileTime,
31 MaxRowsAtCompileTime = MatrixType::MaxRowsAtCompileTime,
32 MaxColsAtCompileTime = MatrixType::MaxColsAtCompileTime,
37 template<
typename PacketType,
bool ReversePacket>
struct reverse_packet_cond
63 template<
typename MatrixType,
int Direction>
class Reverse
71 using
Base::IsRowMajor;
118 template<
typename Derived>
140 template<
typename Derived>
167 template<
int Direction>
173 template<
typename ExpressionType>
174 static void run(ExpressionType &xpr)
176 const int HalfAtCompileTime = ExpressionType::RowsAtCompileTime==
Dynamic?
Dynamic:ExpressionType::RowsAtCompileTime/2;
178 xpr.topRows(fix<HalfAtCompileTime>(
half))
179 .swap(xpr.bottomRows(fix<HalfAtCompileTime>(
half)).colwise().reverse());
186 template<
typename ExpressionType>
187 static void run(ExpressionType &xpr)
189 const int HalfAtCompileTime = ExpressionType::ColsAtCompileTime==
Dynamic?
Dynamic:ExpressionType::ColsAtCompileTime/2;
191 xpr.leftCols(fix<HalfAtCompileTime>(
half))
192 .swap(xpr.rightCols(fix<HalfAtCompileTime>(
half)).rowwise().reverse());
209 template<
typename ExpressionType,
int Direction>
217 #endif // EIGEN_REVERSE_H
#define EIGEN_DEVICE_FUNC
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE FixedSegmentReturnType< internal::get_fixed_value< NType >::value >::Type tail(NType n)
Namespace containing all symbols from the Eigen library.
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE NColsBlockXpr< internal::get_fixed_value< NColsType >::value >::Type rightCols(NColsType n)
ref_selector< MatrixType >::type MatrixTypeNested
set noclip points set clip one set noclip two set bar set border lt lw set xdata set ydata set zdata set x2data set y2data set boxwidth set dummy x
const unsigned int RowMajorBit
EIGEN_STRONG_INLINE Packet2cf preverse(const Packet2cf &a)
const EIGEN_DEVICE_FUNC internal::remove_all< typename MatrixType::Nested >::type & nestedExpression() const
#define EIGEN_DENSE_PUBLIC_INTERFACE(Derived)
traits< MatrixType >::StorageKind StorageKind
EIGEN_DEVICE_FUNC void reverseInPlace()
MatrixType::Nested m_matrix
EIGEN_DEVICE_FUNC Index innerStride() const
EIGEN_DEVICE_FUNC EIGEN_CONSTEXPR Index rows() const EIGEN_NOEXCEPT
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE NColsBlockXpr< internal::get_fixed_value< NColsType >::value >::Type leftCols(NColsType n)
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE NRowsBlockXpr< internal::get_fixed_value< NRowsType >::value >::Type topRows(NRowsType n)
EIGEN_DEVICE_FUNC ReverseReturnType reverse()
static void run(ExpressionType &xpr)
const unsigned int LvalueBit
static void run(ExpressionType &xpr)
internal::reverse_packet_cond< PacketScalar, ReversePacket > reverse_packet
Expression of the reverse of a vector or matrix.
MatrixType::Scalar Scalar
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE NRowsBlockXpr< internal::get_fixed_value< NRowsType >::value >::Type bottomRows(NRowsType n)
traits< MatrixType >::XprKind XprKind
static PacketType run(const PacketType &x)
Map< Matrix< T, Dynamic, Dynamic, ColMajor >, 0, OuterStride<> > matrix(T *data, int rows, int cols, int stride)
remove_reference< MatrixTypeNested >::type _MatrixTypeNested
EIGEN_DEVICE_FUNC Reverse(const MatrixType &matrix)
EIGEN_DEVICE_FUNC void reverseInPlace()
EIGEN_DEVICE_FUNC EIGEN_CONSTEXPR Index cols() const EIGEN_NOEXCEPT
internal::dense_xpr_base< Reverse >::type Base
void reverse(const MatrixType &m)
#define EIGEN_INHERIT_ASSIGNMENT_OPERATORS(Derived)
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
static PacketType run(const PacketType &x)
gtsam
Author(s):
autogenerated on Sun Dec 22 2024 04:13:08