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) {}
Block(VectorType &xpr, Index i)
Definition Block.h:124
VectorBlock(VectorType &vector, Index start, Index size)
Definition VectorBlock.h:71
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 B01_Experimental.dox:1
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
Definition Meta.h:82