![]() |
|
Expression of a fixed-size or dynamic-size sub-vector. More...
#include <VectorBlock.h>
Inheritance diagram for Eigen::VectorBlock< VectorType, Size >:Public Member Functions | |
| EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE | VectorBlock (VectorType &vector, Index start, Index size) |
| EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE | VectorBlock (VectorType &vector, Index start) |
Public Member Functions inherited from Eigen::Block< VectorType, internal::traits< VectorType >::Flags &RowMajorBit ? 1 :Size, internal::traits< VectorType >::Flags &RowMajorBit ? Size :1 > | |
| EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE | Block (VectorType &xpr, Index i) |
| EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE | Block (VectorType &xpr, Index startRow, Index startCol) |
| EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE | Block (VectorType &xpr, Index startRow, Index startCol, Index blockRows, Index blockCols) |
| EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE ConstUnwindReturnType | unwind () const |
| EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE UnwindReturnType | unwind () |
Private Types | |
| enum | { IsColVector = !(internal::traits<VectorType>::Flags & RowMajorBit) } |
| typedef Block< VectorType, internal::traits< VectorType >::Flags &RowMajorBit ? 1 :Size, internal::traits< VectorType >::Flags &RowMajorBit ? Size :1 > | Base |
Additional Inherited Members | |
Public Types inherited from Eigen::Block< VectorType, internal::traits< VectorType >::Flags &RowMajorBit ? 1 :Size, internal::traits< VectorType >::Flags &RowMajorBit ? Size :1 > | |
| typedef Impl | Base |
| typedef internal::remove_all_t< VectorType > | NestedExpression |
| using | ConstUnwindReturnType = Block< const typename BlockHelper::BaseType, BlockRows, BlockCols, InnerPanel > |
| using | UnwindReturnType = Block< typename BlockHelper::BaseType, BlockRows, BlockCols, InnerPanel > |
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:
|
private |
|
inline |
Dynamic-size constructor
|
inline |
Fixed-size constructor