chsvlib
chsv helper source code

◆ RemoveColumns() [6/6]

derived_type RemoveColumns ( size_type  iColumnBegin = 0) const

Removes trailing columns of a copy of a matrix starting from a specified column and returns the resulting matrix.

Parameters
iColumnBeginAn inclusive index of a column of a range of rightmost columns of the matrix to be removed from the copy.
Returns
A new matrix which is a copy of the current matrix without the specified columns.

The method is a wrap over the RemoveColumns(size_type iColumnBegin, size_type iColumnEnd) method.

Exceptions
Chusov::Exceptions::OutOfRangeExceptionThe specified index is not within a set of valid column indices.