chsvlib
chsv helper source code

◆ RemoveColumnsMe() [5/6]

derived_type& RemoveColumnsMe ( size_type  iColumnBegin,
size_type  iColumnEnd 
)

Removes a specified range of columns from a matrix. .

Parameters
iColumnBeginAn index of the first column within the range of columns to be removed from the current matrix.
iColumnEndAn index of the first column to the right of the range of columns to be removed. If such a column does not exist in the current matrix, the index can still be valid, if it holds a total number of columns 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 \(iColumnBegin\leq iColumnEnd\) has been violated.
Chusov::Exceptions::OutOfRangeExceptionThe specified range \(\left[iColumnBegin, iColumnEnd\right)\) is not included or equal to the index range of columns of the matrix, which is \(\left[0, Columns()\right)\).