![]() |
Eigen
3.4.90 (git rev 5a9f66fb35d03a4da9ef8976e67a61b30aa16dcf)
|
Expression of a fixed-size or dynamic-size sub-vector.
VectorType | the type of the object in which we are taking a sub-vector |
Size | size of the sub-vector we are taking at compile time (optional) |
This class represents an expression of either a fixed-size or dynamic-size sub-vector. It is the return type of DenseBase::segment(Index,Index) and DenseBase::segment<int>(Index) and most of the time this is the only way it is used.
However, if you want to directly manipulate sub-vector 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:
Here is an example illustrating the fixed-size case:
Output:
Public Member Functions | |
VectorBlock (VectorType &vector, Index start) | |
VectorBlock (VectorType &vector, Index start, Index size) | |
|
inline |
Dynamic-size constructor
|
inline |
Fixed-size constructor