chsvlib
chsv helper source code

◆ RemoveColumns() [2/6]

derived_type RemoveColumns ( const_iterator  itBegin,
const_iterator  itEnd 
) const

Removes a specified range of columns from a matrix. .

Parameters
itBeginAn iterator of the first column within the range of columns of the current matrix to be removed from the copy.
itEndAn iterator associated with a (pseudo) column of the current matrix to the right 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 of the current matrix which is to the left 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.