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 maniputate 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:
Definition at line 70 of file Core/VectorBlock.h.
#include <src/Core/VectorBlock.h>
Public Member Functions | |
VectorBlock (VectorType &vector, Index start, Index size) | |
Dynamic-size constructor. | |
VectorBlock (VectorType &vector, Index start) | |
Fixed-size constructor. | |
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 |
typedef Block<VectorType, internal::traits<VectorType>::Flags & RowMajorBit ? 1 : Size, internal::traits<VectorType>::Flags & RowMajorBit ? Size : 1> VectorBlock< VectorType, Size >::Base [private] |
Reimplemented from Block< VectorType, internal::traits< VectorType >::Flags &RowMajorBit?1:Size, internal::traits< VectorType >::Flags &RowMajorBit?Size:1 >.
Definition at line 77 of file Core/VectorBlock.h.
anonymous enum [private] |
Definition at line 78 of file Core/VectorBlock.h.
VectorBlock< VectorType, Size >::VectorBlock | ( | VectorType & | vector, |
Index | start, | ||
Index | size | ||
) | [inline] |
Dynamic-size constructor.
Definition at line 88 of file Core/VectorBlock.h.
References EIGEN_STATIC_ASSERT_VECTOR_ONLY.
VectorBlock< VectorType, Size >::VectorBlock | ( | VectorType & | vector, |
Index | start | ||
) | [inline] |
Fixed-size constructor.
Definition at line 98 of file Core/VectorBlock.h.
References EIGEN_STATIC_ASSERT_VECTOR_ONLY.
Page generated by Doxygen 1.7.3 for MRPT 0.9.4 SVN: at Sat Mar 26 06:40:17 UTC 2011 |