chsvlib
chsv helper source code

◆ RemoveRowsMe() [1/2]

derived_type& RemoveRowsMe ( size_type  iRowBegin,
size_type  iRowEnd 
)

Removes a specified range of rows from a matrix. .

Parameters
iRowBeginAn index of the topmost row within the range of rows to be removed from 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 reference to the current matrix.
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 matrix, which is \(\left[0, Rows()\right)\).