![]() |
Eigen
3.4.90 (git rev 5a9f66fb35d03a4da9ef8976e67a61b30aa16dcf)
|
Expression of a fixed-size or dynamic-size reshape.
XprType | the type of the expression in which we are taking a reshape |
Rows | the number of rows of the reshape we are taking at compile time (optional) |
Cols | the number of columns of the reshape we are taking at compile time (optional) |
Order | can 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.
If you want to directly manipulate reshaped expressions, for instance if you want to write a function returning such an expression, 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:
Inherits Eigen::ReshapedImpl< XprType, Rows, Cols, Order, internal::traits< XprType >::StorageKind >.
Public Member Functions | |
Reshaped (XprType &xpr) | |
Reshaped (XprType &xpr, Index reshapeRows, Index reshapeCols) | |
|
inline |
Fixed-size constructor
|
inline |
Dynamic-size constructor