chsvlib
chsv helper source code

◆ RemoveColumns() [4/6]

derived_type RemoveColumns ( const_reverse_iterator  itBegin,
const_reverse_iterator  itEnd 
) const

Removes a specified range of columns from a copy of a matrix. .

Parameters
itBeginA reverse iterator associated with the rightmost column within the range of columns of the current matrix to be removed from its copy.
itEndA reverse iterator associated with a (pseudo) column to the left of the columns to be removed.
Returns
A new matrix which is a copy of the current matrix without the specified columns.

The itBegin iterator must be associated with the column which is to the right or is the same column as the one associated with itEnd, i.e. the expression \(itBegin\leq itEnd\) must be true.

Exceptions
Chusov::Exceptions::InvalidParameterExceptionThe constraint \(itBegin\leq itEnd\) has been violated.
Chusov::Exceptions::OutOfRangeExceptionThe specified range is not a valid range of columns of the matrix.