11 #ifndef EIGEN_VECTORBLOCK_H 12 #define EIGEN_VECTORBLOCK_H 15 #include "./InternalHeaderCheck.h" 20 template <
typename VectorType,
int Size>
21 struct traits<VectorBlock<VectorType, Size> >
22 :
public traits<Block<VectorType, traits<VectorType>::Flags & RowMajorBit ? 1 : Size,
23 traits<VectorType>::Flags & RowMajorBit ? Size : 1> > {};
56 template <
typename VectorType,
int Size>
57 class VectorBlock :
public Block<VectorType, internal::traits<VectorType>::Flags & RowMajorBit ? 1 : Size,
58 internal::traits<VectorType>::Flags & RowMajorBit ? Size : 1> {
59 typedef Block<VectorType, internal::traits<VectorType>::Flags &
RowMajorBit ? 1 : Size,
60 internal::traits<VectorType>::Flags &
RowMajorBit ? Size : 1>
62 enum { IsColVector = !(internal::traits<VectorType>::Flags &
RowMajorBit) };
72 :
Base(vector, IsColVector ? start : 0, IsColVector ? 0 : start, IsColVector ? size : 1, IsColVector ? 1 : size) {
78 :
Base(vector, IsColVector ? start : 0, IsColVector ? 0 : start) {}
83 #endif // EIGEN_VECTORBLOCK_H VectorBlock(VectorType &vector, Index start, Index size)
Definition: VectorBlock.h:71
Namespace containing all symbols from the Eigen library.
Definition: B01_Experimental.dox:1
const unsigned int RowMajorBit
Definition: Constants.h:70
Expression of a fixed-size or dynamic-size sub-vector.
Definition: ForwardDeclarations.h:98
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
Definition: Meta.h:82
VectorBlock(VectorType &vector, Index start)
Definition: VectorBlock.h:77