chsvlib
chsv helper source code

◆ FixedMatrix() [6/15]

FixedMatrix ( InputIterator  itBegin,
InputIterator  itEnd,
const allocator_type alloc = allocator_type() 
)

Constructs a matrix from a range of matrices or matrix columns specified by a pair of input iterators.

Template Parameters
InputIteratoris, at least, an InputIterator type of iterators specifying the range.
Parameters
itBeginis the first iterator which designates the first component of a range to be augmented to the new matrix.
itEndis the last iterator which designates the first component out of the range to be augmented to the new matrix. The iterator must be reachable from itBegin through a finite number \(n\)of incrementations. That is:
while(--n)++itBegin; itBegin == itEnd; //true
. If this requirement is not met, the behaviour of the constructor is undefined. The behaviour is also undefined if the iterators correspond to columns of different matrices.
allocis a custom allocator which can be specified for the created matrix. By default, a default constructed allocator is passed.
See also
make_augmentation_matrix - a more general way of creating matrices which are augmentations of columns.
Exceptions
Chusov::Exceptions::InvalidParameterExceptionA resulting number of the columns does not equal a value of ColumnCount, or sizes of the columns do not equal to RowCount.