chsvlib
chsv helper source code

◆ swap()

void Chusov::Math::swap ( matrix_column< MatrixType > &  left,
matrix_column< MatrixType > &  right 
)

Swaps contents of two matrix columns.

Template Parameters
MatrixTypeA type of host matrices of both columns.
Parameters
leftA column to swap its contents with right.
rightA column to swap its contents with left.
Exceptions
Chusov::Exceptions::InvalidParameterExceptionSizes of the two columns are not equal.
Examples
chsvmath\algebraic_traits.cpp.