11#ifndef EIGEN_PARSED_BY_DOXYGEN
14typedef Block<Derived, internal::traits<Derived>::RowsAtCompileTime, 1, !IsRowMajor> ColXpr;
15typedef const Block<const Derived, internal::traits<Derived>::RowsAtCompileTime, 1, !IsRowMajor> ConstColXpr;
17typedef Block<Derived, 1, internal::traits<Derived>::ColsAtCompileTime, IsRowMajor> RowXpr;
18typedef const Block<const Derived, 1, internal::traits<Derived>::ColsAtCompileTime, IsRowMajor> ConstRowXpr;
20typedef Block<Derived, internal::traits<Derived>::RowsAtCompileTime,
Dynamic, !IsRowMajor> ColsBlockXpr;
21typedef const Block<const Derived, internal::traits<Derived>::RowsAtCompileTime,
Dynamic, !IsRowMajor> ConstColsBlockXpr;
23typedef Block<Derived, Dynamic, internal::traits<Derived>::ColsAtCompileTime, IsRowMajor> RowsBlockXpr;
24typedef const Block<const Derived, Dynamic, internal::traits<Derived>::ColsAtCompileTime, IsRowMajor> ConstRowsBlockXpr;
26template<
int N>
struct NColsBlockXpr {
typedef Block<Derived, internal::traits<Derived>::RowsAtCompileTime, N, !IsRowMajor> Type; };
27template<
int N>
struct ConstNColsBlockXpr {
typedef const Block<const Derived, internal::traits<Derived>::RowsAtCompileTime, N, !IsRowMajor> Type; };
29template<
int N>
struct NRowsBlockXpr {
typedef Block<Derived, N, internal::traits<Derived>::ColsAtCompileTime, IsRowMajor> Type; };
30template<
int N>
struct ConstNRowsBlockXpr {
typedef const Block<const Derived, N, internal::traits<Derived>::ColsAtCompileTime, IsRowMajor> Type; };
32typedef Block<Derived> BlockXpr;
33typedef const Block<const Derived> ConstBlockXpr;
35template<
int Rows,
int Cols>
struct FixedBlockXpr {
typedef Block<Derived,Rows,Cols> Type; };
36template<
int Rows,
int Cols>
struct ConstFixedBlockXpr {
typedef Block<const Derived,Rows,Cols> Type; };
38typedef VectorBlock<Derived> SegmentReturnType;
39typedef const VectorBlock<const Derived> ConstSegmentReturnType;
40template<
int Size>
struct FixedSegmentReturnType {
typedef VectorBlock<Derived, Size> Type; };
41template<
int Size>
struct ConstFixedSegmentReturnType {
typedef const VectorBlock<const Derived, Size> Type; };
59EIGEN_DOC_BLOCK_ADDONS_NOT_INNER_PANEL
64inline BlockXpr block(Index startRow, Index startCol, Index blockRows, Index blockCols)
66 return BlockXpr(derived(), startRow, startCol, blockRows, blockCols);
71inline const ConstBlockXpr block(Index startRow, Index startCol, Index blockRows, Index blockCols)
const
73 return ConstBlockXpr(derived(), startRow, startCol, blockRows, blockCols);
87EIGEN_DOC_BLOCK_ADDONS_NOT_INNER_PANEL
92inline BlockXpr topRightCorner(Index cRows, Index cCols)
94 return BlockXpr(derived(), 0, cols() - cCols, cRows, cCols);
99inline const ConstBlockXpr topRightCorner(Index cRows, Index cCols)
const
101 return ConstBlockXpr(derived(), 0, cols() - cCols, cRows, cCols);
112EIGEN_DOC_BLOCK_ADDONS_NOT_INNER_PANEL
116template<
int CRows,
int CCols>
118inline typename FixedBlockXpr<CRows,CCols>::Type topRightCorner()
120 return typename FixedBlockXpr<CRows,CCols>::Type(derived(), 0, cols() - CCols);
124template<
int CRows,
int CCols>
126inline const typename ConstFixedBlockXpr<CRows,CCols>::Type topRightCorner()
const
128 return typename ConstFixedBlockXpr<CRows,CCols>::Type(derived(), 0, cols() - CCols);
146EIGEN_DOC_BLOCK_ADDONS_NOT_INNER_PANEL
150template<
int CRows,
int CCols>
151inline typename FixedBlockXpr<CRows,CCols>::Type topRightCorner(Index cRows, Index cCols)
153 return typename FixedBlockXpr<CRows,CCols>::Type(derived(), 0, cols() - cCols, cRows, cCols);
157template<
int CRows,
int CCols>
158inline const typename ConstFixedBlockXpr<CRows,CCols>::Type topRightCorner(Index cRows, Index cCols)
const
160 return typename ConstFixedBlockXpr<CRows,CCols>::Type(derived(), 0, cols() - cCols, cRows, cCols);
173EIGEN_DOC_BLOCK_ADDONS_NOT_INNER_PANEL
178inline BlockXpr topLeftCorner(Index cRows, Index cCols)
180 return BlockXpr(derived(), 0, 0, cRows, cCols);
185inline const ConstBlockXpr topLeftCorner(Index cRows, Index cCols)
const
187 return ConstBlockXpr(derived(), 0, 0, cRows, cCols);
197EIGEN_DOC_BLOCK_ADDONS_NOT_INNER_PANEL
201template<
int CRows,
int CCols>
203inline typename FixedBlockXpr<CRows,CCols>::Type topLeftCorner()
205 return typename FixedBlockXpr<CRows,CCols>::Type(derived(), 0, 0);
209template<
int CRows,
int CCols>
211inline const typename ConstFixedBlockXpr<CRows,CCols>::Type topLeftCorner()
const
213 return typename ConstFixedBlockXpr<CRows,CCols>::Type(derived(), 0, 0);
231EIGEN_DOC_BLOCK_ADDONS_NOT_INNER_PANEL
235template<
int CRows,
int CCols>
236inline typename FixedBlockXpr<CRows,CCols>::Type topLeftCorner(Index cRows, Index cCols)
238 return typename FixedBlockXpr<CRows,CCols>::Type(derived(), 0, 0, cRows, cCols);
242template<
int CRows,
int CCols>
243inline const typename ConstFixedBlockXpr<CRows,CCols>::Type topLeftCorner(Index cRows, Index cCols)
const
245 return typename ConstFixedBlockXpr<CRows,CCols>::Type(derived(), 0, 0, cRows, cCols);
258EIGEN_DOC_BLOCK_ADDONS_NOT_INNER_PANEL
263inline BlockXpr bottomRightCorner(Index cRows, Index cCols)
265 return BlockXpr(derived(), rows() - cRows, cols() - cCols, cRows, cCols);
270inline const ConstBlockXpr bottomRightCorner(Index cRows, Index cCols)
const
272 return ConstBlockXpr(derived(), rows() - cRows, cols() - cCols, cRows, cCols);
282EIGEN_DOC_BLOCK_ADDONS_NOT_INNER_PANEL
286template<
int CRows,
int CCols>
288inline typename FixedBlockXpr<CRows,CCols>::Type bottomRightCorner()
290 return typename FixedBlockXpr<CRows,CCols>::Type(derived(), rows() - CRows, cols() - CCols);
294template<
int CRows,
int CCols>
296inline const typename ConstFixedBlockXpr<CRows,CCols>::Type bottomRightCorner()
const
298 return typename ConstFixedBlockXpr<CRows,CCols>::Type(derived(), rows() - CRows, cols() - CCols);
316EIGEN_DOC_BLOCK_ADDONS_NOT_INNER_PANEL
320template<
int CRows,
int CCols>
321inline typename FixedBlockXpr<CRows,CCols>::Type bottomRightCorner(Index cRows, Index cCols)
323 return typename FixedBlockXpr<CRows,CCols>::Type(derived(), rows() - cRows, cols() - cCols, cRows, cCols);
327template<
int CRows,
int CCols>
328inline const typename ConstFixedBlockXpr<CRows,CCols>::Type bottomRightCorner(Index cRows, Index cCols)
const
330 return typename ConstFixedBlockXpr<CRows,CCols>::Type(derived(), rows() - cRows, cols() - cCols, cRows, cCols);
343EIGEN_DOC_BLOCK_ADDONS_NOT_INNER_PANEL
348inline BlockXpr bottomLeftCorner(Index cRows, Index cCols)
350 return BlockXpr(derived(), rows() - cRows, 0, cRows, cCols);
355inline const ConstBlockXpr bottomLeftCorner(Index cRows, Index cCols)
const
357 return ConstBlockXpr(derived(), rows() - cRows, 0, cRows, cCols);
367EIGEN_DOC_BLOCK_ADDONS_NOT_INNER_PANEL
371template<
int CRows,
int CCols>
373inline typename FixedBlockXpr<CRows,CCols>::Type bottomLeftCorner()
375 return typename FixedBlockXpr<CRows,CCols>::Type(derived(), rows() - CRows, 0);
379template<
int CRows,
int CCols>
381inline const typename ConstFixedBlockXpr<CRows,CCols>::Type bottomLeftCorner()
const
383 return typename ConstFixedBlockXpr<CRows,CCols>::Type(derived(), rows() - CRows, 0);
401EIGEN_DOC_BLOCK_ADDONS_NOT_INNER_PANEL
405template<
int CRows,
int CCols>
406inline typename FixedBlockXpr<CRows,CCols>::Type bottomLeftCorner(Index cRows, Index cCols)
408 return typename FixedBlockXpr<CRows,CCols>::Type(derived(), rows() - cRows, 0, cRows, cCols);
412template<
int CRows,
int CCols>
413inline const typename ConstFixedBlockXpr<CRows,CCols>::Type bottomLeftCorner(Index cRows, Index cCols)
const
415 return typename ConstFixedBlockXpr<CRows,CCols>::Type(derived(), rows() - cRows, 0, cRows, cCols);
427EIGEN_DOC_BLOCK_ADDONS_INNER_PANEL_IF(row-major)
432inline RowsBlockXpr topRows(Index n)
434 return RowsBlockXpr(derived(), 0, 0, n, cols());
439inline ConstRowsBlockXpr topRows(Index n)
const
441 return ConstRowsBlockXpr(derived(), 0, 0, n, cols());
455EIGEN_DOC_BLOCK_ADDONS_INNER_PANEL_IF(row-major)
461inline typename NRowsBlockXpr<N>::Type topRows(Index n = N)
463 return typename NRowsBlockXpr<N>::Type(derived(), 0, 0, n, cols());
469inline typename ConstNRowsBlockXpr<N>::Type topRows(Index n = N)
const
471 return typename ConstNRowsBlockXpr<N>::Type(derived(), 0, 0, n, cols());
483EIGEN_DOC_BLOCK_ADDONS_INNER_PANEL_IF(row-major)
488inline RowsBlockXpr bottomRows(Index n)
490 return RowsBlockXpr(derived(), rows() - n, 0, n, cols());
495inline ConstRowsBlockXpr bottomRows(Index n)
const
497 return ConstRowsBlockXpr(derived(), rows() - n, 0, n, cols());
511EIGEN_DOC_BLOCK_ADDONS_INNER_PANEL_IF(row-major)
517inline typename NRowsBlockXpr<N>::Type bottomRows(Index n = N)
519 return typename NRowsBlockXpr<N>::Type(derived(), rows() - n, 0, n, cols());
525inline typename ConstNRowsBlockXpr<N>::Type bottomRows(Index n = N)
const
527 return typename ConstNRowsBlockXpr<N>::Type(derived(), rows() - n, 0, n, cols());
540EIGEN_DOC_BLOCK_ADDONS_INNER_PANEL_IF(row-major)
545inline RowsBlockXpr middleRows(Index startRow, Index n)
547 return RowsBlockXpr(derived(), startRow, 0, n, cols());
552inline ConstRowsBlockXpr middleRows(Index startRow, Index n)
const
554 return ConstRowsBlockXpr(derived(), startRow, 0, n, cols());
569EIGEN_DOC_BLOCK_ADDONS_INNER_PANEL_IF(row-major)
575inline typename NRowsBlockXpr<N>::Type middleRows(Index startRow, Index n = N)
577 return typename NRowsBlockXpr<N>::Type(derived(), startRow, 0, n, cols());
583inline typename ConstNRowsBlockXpr<N>::Type middleRows(Index startRow, Index n = N)
const
585 return typename ConstNRowsBlockXpr<N>::Type(derived(), startRow, 0, n, cols());
597EIGEN_DOC_BLOCK_ADDONS_INNER_PANEL_IF(column-major)
602inline ColsBlockXpr leftCols(Index n)
604 return ColsBlockXpr(derived(), 0, 0, rows(), n);
609inline ConstColsBlockXpr leftCols(Index n)
const
611 return ConstColsBlockXpr(derived(), 0, 0, rows(), n);
625EIGEN_DOC_BLOCK_ADDONS_INNER_PANEL_IF(column-major)
631inline typename NColsBlockXpr<N>::Type leftCols(Index n = N)
633 return typename NColsBlockXpr<N>::Type(derived(), 0, 0, rows(), n);
639inline typename ConstNColsBlockXpr<N>::Type leftCols(Index n = N)
const
641 return typename ConstNColsBlockXpr<N>::Type(derived(), 0, 0, rows(), n);
653EIGEN_DOC_BLOCK_ADDONS_INNER_PANEL_IF(column-major)
658inline ColsBlockXpr rightCols(Index n)
660 return ColsBlockXpr(derived(), 0, cols() - n, rows(), n);
665inline ConstColsBlockXpr rightCols(Index n)
const
667 return ConstColsBlockXpr(derived(), 0, cols() - n, rows(), n);
681EIGEN_DOC_BLOCK_ADDONS_INNER_PANEL_IF(column-major)
687inline typename NColsBlockXpr<N>::Type rightCols(Index n = N)
689 return typename NColsBlockXpr<N>::Type(derived(), 0, cols() - n, rows(), n);
695inline typename ConstNColsBlockXpr<N>::Type rightCols(Index n = N)
const
697 return typename ConstNColsBlockXpr<N>::Type(derived(), 0, cols() - n, rows(), n);
710EIGEN_DOC_BLOCK_ADDONS_INNER_PANEL_IF(column-major)
715inline ColsBlockXpr middleCols(Index startCol, Index numCols)
717 return ColsBlockXpr(derived(), 0, startCol, rows(), numCols);
722inline ConstColsBlockXpr middleCols(Index startCol, Index numCols)
const
724 return ConstColsBlockXpr(derived(), 0, startCol, rows(), numCols);
739EIGEN_DOC_BLOCK_ADDONS_INNER_PANEL_IF(column-major)
745inline typename NColsBlockXpr<N>::Type middleCols(Index startCol, Index n = N)
747 return typename NColsBlockXpr<N>::Type(derived(), 0, startCol, rows(), n);
753inline typename ConstNColsBlockXpr<N>::Type middleCols(Index startCol, Index n = N)
const
755 return typename ConstNColsBlockXpr<N>::Type(derived(), 0, startCol, rows(), n);
774EIGEN_DOC_BLOCK_ADDONS_NOT_INNER_PANEL
778template<
int NRows,
int NCols>
780inline typename FixedBlockXpr<NRows,NCols>::Type block(Index startRow, Index startCol)
782 return typename FixedBlockXpr<NRows,NCols>::Type(derived(), startRow, startCol);
786template<
int NRows,
int NCols>
788inline const typename ConstFixedBlockXpr<NRows,NCols>::Type block(Index startRow, Index startCol)
const
790 return typename ConstFixedBlockXpr<NRows,NCols>::Type(derived(), startRow, startCol);
810EIGEN_DOC_BLOCK_ADDONS_NOT_INNER_PANEL
814template<
int NRows,
int NCols>
815inline typename FixedBlockXpr<NRows,NCols>::Type block(Index startRow, Index startCol,
816 Index blockRows, Index blockCols)
818 return typename FixedBlockXpr<NRows,NCols>::Type(derived(), startRow, startCol, blockRows, blockCols);
822template<
int NRows,
int NCols>
823inline const typename ConstFixedBlockXpr<NRows,NCols>::Type block(Index startRow, Index startCol,
824 Index blockRows, Index blockCols)
const
826 return typename ConstFixedBlockXpr<NRows,NCols>::Type(derived(), startRow, startCol, blockRows, blockCols);
834EIGEN_DOC_BLOCK_ADDONS_INNER_PANEL_IF(column-major)
838inline ColXpr col(Index i)
840 return ColXpr(derived(), i);
845inline ConstColXpr col(Index i)
const
847 return ConstColXpr(derived(), i);
855EIGEN_DOC_BLOCK_ADDONS_INNER_PANEL_IF(row-major)
859inline RowXpr row(Index i)
861 return RowXpr(derived(), i);
866inline ConstRowXpr row(Index i)
const
868 return ConstRowXpr(derived(), i);
888inline SegmentReturnType segment(Index start, Index n)
890 EIGEN_STATIC_ASSERT_VECTOR_ONLY(Derived)
891 return SegmentReturnType(derived(), start, n);
897inline ConstSegmentReturnType segment(Index start, Index n)
const
899 EIGEN_STATIC_ASSERT_VECTOR_ONLY(Derived)
900 return ConstSegmentReturnType(derived(), start, n);
919inline SegmentReturnType head(Index n)
921 EIGEN_STATIC_ASSERT_VECTOR_ONLY(Derived)
922 return SegmentReturnType(derived(), 0, n);
927inline ConstSegmentReturnType head(Index n)
const
929 EIGEN_STATIC_ASSERT_VECTOR_ONLY(Derived)
930 return ConstSegmentReturnType(derived(), 0, n);
949inline SegmentReturnType tail(Index n)
951 EIGEN_STATIC_ASSERT_VECTOR_ONLY(Derived)
952 return SegmentReturnType(derived(), this->size() - n, n);
957inline ConstSegmentReturnType tail(Index n)
const
959 EIGEN_STATIC_ASSERT_VECTOR_ONLY(Derived)
960 return ConstSegmentReturnType(derived(), this->size() - n, n);
981inline typename FixedSegmentReturnType<N>::Type segment(Index start, Index n = N)
983 EIGEN_STATIC_ASSERT_VECTOR_ONLY(Derived)
984 return typename FixedSegmentReturnType<N>::Type(derived(), start, n);
990inline typename ConstFixedSegmentReturnType<N>::Type segment(Index start, Index n = N)
const
992 EIGEN_STATIC_ASSERT_VECTOR_ONLY(Derived)
993 return typename ConstFixedSegmentReturnType<N>::Type(derived(), start, n);
1013inline typename FixedSegmentReturnType<N>::Type head(Index n = N)
1015 EIGEN_STATIC_ASSERT_VECTOR_ONLY(Derived)
1016 return typename FixedSegmentReturnType<N>::Type(derived(), 0, n);
1022inline typename ConstFixedSegmentReturnType<N>::Type head(Index n = N)
const
1024 EIGEN_STATIC_ASSERT_VECTOR_ONLY(Derived)
1025 return typename ConstFixedSegmentReturnType<N>::Type(derived(), 0, n);
1045inline typename FixedSegmentReturnType<N>::Type tail(Index n = N)
1047 EIGEN_STATIC_ASSERT_VECTOR_ONLY(Derived)
1048 return typename FixedSegmentReturnType<N>::Type(derived(), size() - n);
1054inline typename ConstFixedSegmentReturnType<N>::Type tail(Index n = N)
const
1056 EIGEN_STATIC_ASSERT_VECTOR_ONLY(Derived)
1057 return typename ConstFixedSegmentReturnType<N>::Type(derived(), size() - n);
const int Dynamic
Definition: Constants.h:21