chsvlib
chsv helper source code

◆ make_stacked_matrix()

Matrix<common_value_type, common_allocator_type, void, common_policy_type> Chusov::Math::make_stacked_matrix ( aug1_t &&  aug1,
aug_t_n &&...  aug_n 
)

Creates a Matrix object as set other matrices stacked to the bottom of each other consequently.

Template Parameters
aug1_tis a type of the mandatory first entity of the parameter list.
aug_t_n...is a pack of matrix types defining other rows to be augmented to the created matrix.
Parameters
aug1is the first matrix to be located at the top.
aug_nis an optional set of matrices to be stacked to the bottom of aug1.
Returns
Returns a resulting matrix.

The function is built to be used with template deduction mechanisms and can be used to stack various types of matrices into one matrix object. Unlike the make_augmentation_matrix function, make_stacked_matrix only accepts various instantiations of Matrix which have a common type, that is if they are convertible to such a common instantiation of the Matrix template, such that:

Exceptions
Chusov::Exceptions::InvalidParameterExceptionInvalid sizes of parameters.