11 #ifndef EIGEN_VECTORBLOCK_H 12 #define EIGEN_VECTORBLOCK_H 48 template<
typename VectorType,
int Size>
49 struct traits<VectorBlock<VectorType, Size> >
50 :
public traits<Block<VectorType,
51 traits<VectorType>::Flags & RowMajorBit ? 1 : Size,
52 traits<VectorType>::Flags & RowMajorBit ? Size : 1> >
57 template<
typename VectorType,
int Size>
class VectorBlock
58 :
public Block<VectorType,
59 internal::traits<VectorType>::Flags & RowMajorBit ? 1 : Size,
60 internal::traits<VectorType>::Flags & RowMajorBit ? Size : 1>
62 typedef Block<VectorType,
63 internal::traits<VectorType>::Flags &
RowMajorBit ? 1 : Size,
64 internal::traits<VectorType>::Flags &
RowMajorBit ? Size : 1> Base;
66 IsColVector = !(internal::traits<VectorType>::Flags &
RowMajorBit)
69 EIGEN_DENSE_PUBLIC_INTERFACE(VectorBlock)
71 using Base::operator=;
76 inline
VectorBlock(VectorType& vector, Index start, Index size)
78 IsColVector ? start : 0, IsColVector ? 0 : start,
79 IsColVector ? size : 1, IsColVector ? 1 : size)
88 :
Base(vector, IsColVector ? start : 0, IsColVector ? 0 : start)
97 #endif // EIGEN_VECTORBLOCK_H
const unsigned int RowMajorBit
Definition: Constants.h:61
Expression of a fixed-size or dynamic-size sub-vector.
Definition: ForwardDeclarations.h:87
Definition: Eigen_Colamd.h:54
VectorBlock(VectorType &vector, Index start)
Definition: VectorBlock.h:87