Eigen
3.4.90 (git rev 67eeba6e720c5745abc77ae6c92ce0a44aa7b7ae)
|
Expression of a fixed-size or dynamic-size block.
XprType | the type of the expression in which we are taking a block |
BlockRows | the number of rows of the block we are taking at compile time (optional) |
BlockCols | the number of columns of the block we are taking at compile time (optional) |
InnerPanel | is true, if the block maps to a set of rows of a row major matrix or to set of columns of a column major matrix (optional). The parameter allows to determine at compile time whether aligned access is possible on the block expression. |
This class represents an expression of either a fixed-size or dynamic-size block. It is the return type of DenseBase::block(Index,Index,Index,Index) and DenseBase::block<int,int>(Index,Index) and most of the time this is the only way it is used.
However, if you want to directly maniputate block expressions, for instance if you want to write a function returning such an expression, you will need to use this class.
Here is an example illustrating the dynamic case:
Output:
4 0 0 0 4 0 Now the matrix m is: 5 0 0 0 0 5 0 0 0 0 1 0 0 0 0 1
Here is an example illustrating the fixed-size case:
Output:
4 0 0 4 Now the matrix m is: 2 0 0 0 2 0 0 0 1
Inherits Eigen::BlockImpl< XprType, BlockRows, BlockCols, InnerPanel, internal::traits< XprType >::StorageKind >.
Public Member Functions | |
Block (XprType &xpr, Index i) | |
Block (XprType &xpr, Index startRow, Index startCol) | |
Block (XprType &xpr, Index startRow, Index startCol, Index blockRows, Index blockCols) | |
|
inline |
Column or Row constructor
|
inline |
Fixed-size constructor
|
inline |
Dynamic-size constructor