chsvlib
chsv helper source code

◆ StackMe()

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

Adds new rows to the bottom of a matrix.

Template Parameters
rvalue_tA type of elements of the matrix to be stacked. 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 stacked to the bottom of the current one.
Returns
A reference to *this.
Remarks
Both the current matrix and refRight can be empty. If the current matrix is empty, the rows of refRight are simply assigned to the current matrix. If refRight is empty, the current matrix is left unchanged.
Exceptions
Chusov::Exceptions::InvalidParameterExceptionA number of columns of the matrix referenced by refRight mismatches a number of columns in the current matrix, except for the case either or both of the matrices are empty.