chsvlib
chsv helper source code

◆ Matrix() [16/16]

Matrix ( const std::vector< value_t, alloc_t > &  v,
const allocator_type alloc = allocator_type() 
)

Construct a one-dimensional matrix from an algebraic vector represented as an std::vector object. .

Template Parameters
value_tis a type of elements of the input vector to be explicitly converted into value_type.
alloc_tis a type of an allocator object used by the vector specified as the input parameter.
Parameters
vis a one dimensional vector of elements which represents the sole column of the matrix to be created.
allocis an allocator object used to manage storage of the matrix elements.
Exceptions
Chusov::Exceptions::InvalidParameterExceptionThe input vector is empty, which is not allowed.