11 #ifndef EIGEN_VECTORBLOCK_H
12 #define EIGEN_VECTORBLOCK_H
14 #include "./InternalHeaderCheck.h"
19 template<
typename VectorType,
int Size>
20 struct traits<VectorBlock<VectorType, Size> >
21 :
public traits<Block<VectorType,
22 traits<VectorType>::Flags & RowMajorBit ? 1 : Size,
23 traits<VectorType>::Flags & RowMajorBit ? Size : 1> >
59 :
public Block<VectorType,
60 internal::traits<VectorType>::Flags & RowMajorBit ? 1 : Size,
61 internal::traits<VectorType>::Flags & RowMajorBit ? Size : 1>
63 typedef Block<VectorType,
64 internal::traits<VectorType>::Flags &
RowMajorBit ? 1 : Size,
67 IsColVector = !(internal::traits<VectorType>::Flags &
RowMajorBit)
73 using Base::operator=;
77 EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE
80 IsColVector ? start : 0, IsColVector ? 0 : start,
81 IsColVector ? size : 1, IsColVector ? 1 : size)
86 EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE
88 :
Base(vector, IsColVector ? start : 0, IsColVector ? 0 : start)
Expression of a fixed-size or dynamic-size block.
Definition: Block.h:107
Expression of a fixed-size or dynamic-size sub-vector.
Definition: VectorBlock.h:62
VectorBlock(VectorType &vector, Index start, Index size)
Definition: VectorBlock.h:78
VectorBlock(VectorType &vector, Index start)
Definition: VectorBlock.h:87
const unsigned int RowMajorBit
Definition: Constants.h:68
Namespace containing all symbols from the Eigen library.
Definition: Core:139
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
Definition: Meta.h:59