chsvlib
chsv helper source code

◆ RemoveRows() [1/2]

derived_type RemoveRows ( size_type  iRowBegin,
size_type  iRowEnd 
) const

Removes a specified range of rows from a returned copy of a matrix. .

Parameters
iRowBeginAn index of the topmost row within the range of rows to be removed from the copy of the current matrix.
iRowEndAn index of the first row below the range of columns to be removed. If such a row does not exist in the current matrix, the index can still be valid, if it holds a total number of rows within the matrix and, as such, satisfies the past-the-end condition, i.e. it is not dereferenceable but valid to address a range.
Returns
A new matrix which is a copy of the current matrix without the specified rows.
Exceptions
Chusov::Exceptions::InvalidParameterExceptionThe constraint \(iRowBegin\leq iRowEnd\) has been violated.
Chusov::Exceptions::OutOfRangeExceptionThe specified range \(\left[iRowBegin, iRowEnd\right)\) is not included or equal to the index range of rows of the current matrix, which is \(\left[0, Rows()\right)\).