WPILibC++ 2023.4.3-108-ge5452e3
Eigen::Reshaped< XprType, Rows, Cols, Order > Class Template Reference

Expression of a fixed-size or dynamic-size reshape. More...

#include </home/runner/work/allwpilib/allwpilib/wpimath/src/main/native/thirdparty/eigen/include/Eigen/src/Core/Reshaped.h>

Inheritance diagram for Eigen::Reshaped< XprType, Rows, Cols, Order >:
Eigen::ReshapedImpl< XprType, Rows, Cols, Order, internal::traits< XprType >::StorageKind >

Public Types

typedef Impl Base
 

Public Member Functions

EIGEN_DEVICE_FUNC Reshaped (XprType &xpr)
 Fixed-size constructor. More...
 
EIGEN_DEVICE_FUNC Reshaped (XprType &xpr, Index reshapeRows, Index reshapeCols)
 Dynamic-size constructor. More...
 

Detailed Description

template<typename XprType, int Rows, int Cols, int Order>
class Eigen::Reshaped< XprType, Rows, Cols, Order >

Expression of a fixed-size or dynamic-size reshape.

Template Parameters
XprTypethe type of the expression in which we are taking a reshape
Rowsthe number of rows of the reshape we are taking at compile time (optional)
Colsthe number of columns of the reshape we are taking at compile time (optional)
Ordercan be ColMajor or RowMajor, default is ColMajor.

This class represents an expression of either a fixed-size or dynamic-size reshape. It is the return type of DenseBase::reshaped(NRowsType,NColsType) and most of the time this is the only way it is used.

However, in C++98, if you want to directly maniputate reshaped expressions, for instance if you want to write a function returning such an expression, you will need to use this class. In C++11, it is advised to use the auto keyword for such use cases.

Here is an example illustrating the dynamic case:

Output:

Here is an example illustrating the fixed-size case:

Output:

See also
DenseBase::reshaped(NRowsType,NColsType)

Member Typedef Documentation

◆ Base

template<typename XprType , int Rows, int Cols, int Order>
typedef Impl Eigen::Reshaped< XprType, Rows, Cols, Order >::Base

Constructor & Destructor Documentation

◆ Reshaped() [1/2]

template<typename XprType , int Rows, int Cols, int Order>
EIGEN_DEVICE_FUNC Eigen::Reshaped< XprType, Rows, Cols, Order >::Reshaped ( XprType &  xpr)
inline

Fixed-size constructor.

◆ Reshaped() [2/2]

template<typename XprType , int Rows, int Cols, int Order>
EIGEN_DEVICE_FUNC Eigen::Reshaped< XprType, Rows, Cols, Order >::Reshaped ( XprType &  xpr,
Index  reshapeRows,
Index  reshapeCols 
)
inline

Dynamic-size constructor.


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