Expression of a fixed-size or dynamic-size sub-vector.
| VectorType | the type of the object in which we are taking a sub-vector |
| Size | size of the sub-vector we are taking at compile time (optional) |
This class represents an expression of either a fixed-size or dynamic-size sub-vector. It is the return type of DenseBase::segment(Index,Index) and DenseBase::segment<int>(Index) and most of the time this is the only way it is used.
However, if you want to directly maniputate sub-vector expressions, for instance if you want to write a function returning such an expression, you will need to use this class.
Here is an example illustrating the dynamic case:
Output:
Here is an example illustrating the fixed-size case:
Output:

Public Member Functions | |
| VectorBlock (VectorType &vector, Index start, Index size) | |
| Dynamic-size constructor. | |
| VectorBlock (VectorType &vector, Index start) | |
| Fixed-size constructor. | |
| Index | rows () const |
| Index | cols () const |
| Scalar & | coeffRef (Index row, Index col) |
| const Scalar & | coeffRef (Index row, Index col) const |
| Scalar & | coeffRef (Index index) |
| const Scalar & | coeffRef (Index index) const |
| EIGEN_STRONG_INLINE const CoeffReturnType | coeff (Index row, Index col) const |
| const CoeffReturnType | coeff (Index index) const |
| PacketScalar | packet (Index row, Index col) const |
| PacketScalar | packet (Index index) const |
| void | writePacket (Index row, Index col, const PacketScalar &x) |
| void | writePacket (Index index, const PacketScalar &x) |
| const Scalar * | data () const |
| Index | innerStride () const |
| Index | outerStride () const |
Protected Attributes | |
| const VectorType::Nested | m_xpr |
| const internal::variable_if_dynamic < Index, VectorType::RowsAtCompileTime==1?0:Dynamic > | m_startRow |
| const internal::variable_if_dynamic < Index, VectorType::ColsAtCompileTime==1?0:Dynamic > | m_startCol |
| const internal::variable_if_dynamic < Index, RowsAtCompileTime > | m_blockRows |
| const internal::variable_if_dynamic < Index, ColsAtCompileTime > | m_blockCols |
Private Types | |
| enum | { IsColVector = !(internal::traits<VectorType>::Flags & RowMajorBit) } |
| typedef Block< VectorType, internal::traits< VectorType > ::Flags &RowMajorBit?1:Size, internal::traits< VectorType > ::Flags &RowMajorBit?Size:1 > | Base |
typedef Block<VectorType, internal::traits<VectorType>::Flags & RowMajorBit ? 1 : Size, internal::traits<VectorType>::Flags & RowMajorBit ? Size : 1> Eigen::VectorBlock< VectorType, Size >::Base [private] |
anonymous enum [private] |
| Eigen::VectorBlock< VectorType, Size >::VectorBlock | ( | VectorType & | vector, |
| Index | start, | ||
| Index | size | ||
| ) | [inline] |
| Eigen::VectorBlock< VectorType, Size >::VectorBlock | ( | VectorType & | vector, |
| Index | start | ||
| ) | [inline] |
| EIGEN_STRONG_INLINE const CoeffReturnType Eigen::Block< VectorType , BlockRows, BlockCols, InnerPanel, HasDirectAccess >::coeff | ( | Index | row, |
| Index | col | ||
| ) | const [inline, inherited] |
| const CoeffReturnType Eigen::Block< VectorType , BlockRows, BlockCols, InnerPanel, HasDirectAccess >::coeff | ( | Index | index | ) | const [inline, inherited] |
| const Scalar& Eigen::Block< VectorType , BlockRows, BlockCols, InnerPanel, HasDirectAccess >::coeffRef | ( | Index | row, |
| Index | col | ||
| ) | const [inline, inherited] |
| Scalar& Eigen::Block< VectorType , BlockRows, BlockCols, InnerPanel, HasDirectAccess >::coeffRef | ( | Index | index | ) | [inline, inherited] |
| Scalar& Eigen::Block< VectorType , BlockRows, BlockCols, InnerPanel, HasDirectAccess >::coeffRef | ( | Index | row, |
| Index | col | ||
| ) | [inline, inherited] |
| const Scalar& Eigen::Block< VectorType , BlockRows, BlockCols, InnerPanel, HasDirectAccess >::coeffRef | ( | Index | index | ) | const [inline, inherited] |
| Index Eigen::Block< VectorType , BlockRows, BlockCols, InnerPanel, HasDirectAccess >::cols | ( | void | ) | const [inline, inherited] |
| const Scalar* Eigen::Block< VectorType , BlockRows, BlockCols, InnerPanel, HasDirectAccess >::data | ( | ) | const [inline, inherited] |
| Index Eigen::Block< VectorType , BlockRows, BlockCols, InnerPanel, HasDirectAccess >::innerStride | ( | ) | const [inline, inherited] |
| Index Eigen::Block< VectorType , BlockRows, BlockCols, InnerPanel, HasDirectAccess >::outerStride | ( | ) | const [inline, inherited] |
| PacketScalar Eigen::Block< VectorType , BlockRows, BlockCols, InnerPanel, HasDirectAccess >::packet | ( | Index | row, |
| Index | col | ||
| ) | const [inline, inherited] |
| PacketScalar Eigen::Block< VectorType , BlockRows, BlockCols, InnerPanel, HasDirectAccess >::packet | ( | Index | index | ) | const [inline, inherited] |
| Index Eigen::Block< VectorType , BlockRows, BlockCols, InnerPanel, HasDirectAccess >::rows | ( | void | ) | const [inline, inherited] |
| void Eigen::Block< VectorType , BlockRows, BlockCols, InnerPanel, HasDirectAccess >::writePacket | ( | Index | index, |
| const PacketScalar & | x | ||
| ) | [inline, inherited] |
| void Eigen::Block< VectorType , BlockRows, BlockCols, InnerPanel, HasDirectAccess >::writePacket | ( | Index | row, |
| Index | col, | ||
| const PacketScalar & | x | ||
| ) | [inline, inherited] |
const internal::variable_if_dynamic<Index, ColsAtCompileTime> Eigen::Block< VectorType , BlockRows, BlockCols, InnerPanel, HasDirectAccess >::m_blockCols [protected, inherited] |
const internal::variable_if_dynamic<Index, RowsAtCompileTime> Eigen::Block< VectorType , BlockRows, BlockCols, InnerPanel, HasDirectAccess >::m_blockRows [protected, inherited] |
const internal::variable_if_dynamic<Index, VectorType ::ColsAtCompileTime == 1 ? 0 : Dynamic> Eigen::Block< VectorType , BlockRows, BlockCols, InnerPanel, HasDirectAccess >::m_startCol [protected, inherited] |
const internal::variable_if_dynamic<Index, VectorType ::RowsAtCompileTime == 1 ? 0 : Dynamic> Eigen::Block< VectorType , BlockRows, BlockCols, InnerPanel, HasDirectAccess >::m_startRow [protected, inherited] |
const VectorType ::Nested Eigen::Block< VectorType , BlockRows, BlockCols, InnerPanel, HasDirectAccess >::m_xpr [protected, inherited] |
| Page generated by Doxygen 1.7.4 for MRPT 0.9.5 SVN:2717 at Sun Oct 16 16:08:03 PDT 2011 | Hosted on: |