chsvlib
chsv helper source code

◆ AugmentMe() [2/4]

derived_type& AugmentMe ( const Matrix< rvalue_t, ralloc_t, rderived_t, rpolicy_t > &  refRight)

Adds columns of a specified matrix to the right side of the current matrix.

Template Parameters
rvalue_tA type of elements of the matrix to be augmented. The type must be implicitly convertible to value_type.
ralloc_tA type of an allocator used by the matrix to be augmented.
rderived_tA derived type of the parameter matrix.
rpolicy_tA policy used by the parameter matrix.
Parameters
refRightis a reference to the matrix to be augmented.
Returns
A reference to *this.
Remarks
Both the current matrix and refRight can be empty. If the current matrix is empty, the refRight is simply assigned to the current matrix. If refRight is empty, the current matrix is left unchanged.
Exceptions
Chusov::Exceptions::InvalidParameterExceptionA number of rows of the matrix referenced by refRight mismatches a number of rows in the current matrix, and both matrices are not empty.
See also
make_augmentation_matrix