11#ifndef EIGEN_VECTORBLOCK_H
12#define EIGEN_VECTORBLOCK_H
15#include "./InternalHeaderCheck.h"
20template <
typename VectorType,
int Size>
21struct traits<VectorBlock<VectorType, Size> >
22 :
public traits<Block<VectorType, traits<VectorType>::Flags & RowMajorBit ? 1 : Size,
23 traits<VectorType>::Flags & RowMajorBit ? Size : 1> > {};
56template <
typename VectorType,
int Size>
57class VectorBlock :
public Block<VectorType, internal::traits<VectorType>::Flags & RowMajorBit ? 1 : Size,
58 internal::traits<VectorType>::Flags & RowMajorBit ? Size : 1> {
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) {}
Expression of a fixed-size or dynamic-size block.
Definition Block.h:110
Expression of a fixed-size or dynamic-size sub-vector.
Definition VectorBlock.h:58
VectorBlock(VectorType &vector, Index start)
Definition VectorBlock.h:77
const unsigned int RowMajorBit
Definition Constants.h:70
Namespace containing all symbols from the Eigen library.
Definition Core:137
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
Definition Meta.h:83