diff --git a/Eigen/src/Core/Block.h b/Eigen/src/Core/Block.h index 5fb7126e6..498757ad9 100644 --- a/Eigen/src/Core/Block.h +++ b/Eigen/src/Core/Block.h @@ -684,22 +684,22 @@ DenseBase::bottomRows() const * \param startRow the index of the first row in the block * \param numRows the number of rows in the block * - * Example: \include MatrixBase_rowRange_int.cpp - * Output: \verbinclude MatrixBase_rowRange_int.out + * Example: \include MatrixBase_middleRows_int.cpp + * Output: \verbinclude MatrixBase_middleRows_int.out * * \sa class Block, block(Index,Index,Index,Index) */ template inline typename DenseBase::RowsBlockXpr DenseBase - ::rowRange(Index startRow, Index numRows) + ::middleRows(Index startRow, Index numRows) { return RowsBlockXpr(derived(), startRow, 0, numRows, cols()); } -/** This is the const version of rowRange(Index,Index).*/ +/** This is the const version of middleRows(Index,Index).*/ template inline const typename DenseBase::RowsBlockXpr -DenseBase::rowRange(Index startRow, Index numRows) const +DenseBase::middleRows(Index startRow, Index numRows) const { return RowsBlockXpr(derived(), startRow, 0, numRows, cols()); } @@ -709,24 +709,24 @@ DenseBase::rowRange(Index startRow, Index numRows) const * \param N the number of rows in the block * \param startRow the index of the first row in the block * - * Example: \include MatrixBase_template_int_rowRange.cpp - * Output: \verbinclude MatrixBase_template_int_rowRange.out + * Example: \include MatrixBase_template_int_middleRows.cpp + * Output: \verbinclude MatrixBase_template_int_middleRows.out * * \sa class Block, block(Index,Index,Index,Index) */ template template inline typename DenseBase::template NRowsBlockXpr::Type -DenseBase::rowRange(Index startRow) +DenseBase::middleRows(Index startRow) { return typename DenseBase::template NRowsBlockXpr::Type(derived(), startRow, 0, N, cols()); } -/** This is the const version of rowRange().*/ +/** This is the const version of middleRows().*/ template template inline const typename DenseBase::template NRowsBlockXpr::Type -DenseBase::rowRange(Index startRow) const +DenseBase::middleRows(Index startRow) const { return typename DenseBase::template NRowsBlockXpr::Type(derived(), startRow, 0, N, cols()); } @@ -846,22 +846,22 @@ DenseBase::rightCols() const * \param startCol the index of the first column in the block * \param numCols the number of columns in the block * - * Example: \include MatrixBase_colRange_int.cpp - * Output: \verbinclude MatrixBase_colRange_int.out + * Example: \include MatrixBase_middleCols_int.cpp + * Output: \verbinclude MatrixBase_middleCols_int.out * * \sa class Block, block(Index,Index,Index,Index) */ template inline typename DenseBase::ColsBlockXpr DenseBase - ::colRange(Index startCol, Index numCols) + ::middleCols(Index startCol, Index numCols) { return ColsBlockXpr(derived(), 0, startCol, rows(), numCols); } -/** This is the const version of colRange(Index,Index).*/ +/** This is the const version of middleCols(Index,Index).*/ template inline const typename DenseBase::ColsBlockXpr -DenseBase::colRange(Index startCol, Index numCols) const +DenseBase::middleCols(Index startCol, Index numCols) const { return ColsBlockXpr(derived(), 0, startCol, rows(), numCols); } @@ -871,24 +871,24 @@ DenseBase::colRange(Index startCol, Index numCols) const * \param N the number of columns in the block * \param startCol the index of the first column in the block * - * Example: \include MatrixBase_template_int_colRange.cpp - * Output: \verbinclude MatrixBase_template_int_colRange.out + * Example: \include MatrixBase_template_int_middleCols.cpp + * Output: \verbinclude MatrixBase_template_int_middleCols.out * * \sa class Block, block(Index,Index,Index,Index) */ template template inline typename DenseBase::template NColsBlockXpr::Type -DenseBase::colRange(Index startCol) +DenseBase::middleCols(Index startCol) { return typename NColsBlockXpr::Type(derived(), 0, startCol, rows(), N); } -/** This is the const version of colRange().*/ +/** This is the const version of middleCols().*/ template template inline const typename DenseBase::template NColsBlockXpr::Type -DenseBase::colRange(Index startCol) const +DenseBase::middleCols(Index startCol) const { return typename NColsBlockXpr::Type(derived(), 0, startCol, rows(), N); } diff --git a/Eigen/src/Core/DenseBase.h b/Eigen/src/Core/DenseBase.h index c42c4b8d1..6f5013e2d 100644 --- a/Eigen/src/Core/DenseBase.h +++ b/Eigen/src/Core/DenseBase.h @@ -327,14 +327,14 @@ template class DenseBase const RowsBlockXpr topRows(Index n) const; RowsBlockXpr bottomRows(Index n); const RowsBlockXpr bottomRows(Index n) const; - RowsBlockXpr rowRange(Index startRow, Index numRows); - const RowsBlockXpr rowRange(Index startRow, Index numRows) const; + RowsBlockXpr middleRows(Index startRow, Index numRows); + const RowsBlockXpr middleRows(Index startRow, Index numRows) const; ColsBlockXpr leftCols(Index n); const ColsBlockXpr leftCols(Index n) const; ColsBlockXpr rightCols(Index n); const ColsBlockXpr rightCols(Index n) const; - ColsBlockXpr colRange(Index startCol, Index numCols); - const ColsBlockXpr colRange(Index startCol, Index numCols) const; + ColsBlockXpr middleCols(Index startCol, Index numCols); + const ColsBlockXpr middleCols(Index startCol, Index numCols) const; template Block topLeftCorner(); template const Block topLeftCorner() const; @@ -349,14 +349,14 @@ template class DenseBase template const typename NRowsBlockXpr::Type topRows() const; template typename NRowsBlockXpr::Type bottomRows(); template const typename NRowsBlockXpr::Type bottomRows() const; - template typename NRowsBlockXpr::Type rowRange(Index startRow); - template const typename NRowsBlockXpr::Type rowRange(Index startRow) const; + template typename NRowsBlockXpr::Type middleRows(Index startRow); + template const typename NRowsBlockXpr::Type middleRows(Index startRow) const; template typename NColsBlockXpr::Type leftCols(); template const typename NColsBlockXpr::Type leftCols() const; template typename NColsBlockXpr::Type rightCols(); template const typename NColsBlockXpr::Type rightCols() const; - template typename NColsBlockXpr::Type colRange(Index startCol); - template const typename NColsBlockXpr::Type colRange(Index startCol) const; + template typename NColsBlockXpr::Type middleCols(Index startCol); + template const typename NColsBlockXpr::Type middleCols(Index startCol) const; template Block block(Index startRow, Index startCol);