chsvlib
chsv helper source code

◆ construct_zero_matrix()

void Chusov::Math::construct_zero_matrix ( ValueType *  column_matrix,
std::size_t  columns,
std::size_t  rows 
)
noexcept

Constructs a zero matrix by default-constructing its elements in a buffer.

Template Parameters
ValueTypeA type of a matrix element.
Parameters
[out]column_matrixThe buffer in which the matrix is constructed.
columnsA number of columns in the constructed matrix.
rowsA number of rows in the constructed matrix.
Exceptions
Anyexceptions thrown by the default constructor of ValueType.

Unlike set_zero_matrix, the function considers column_matrix to be a buffer with uninitialized elements. No assignment or destruction takes place. To assign the matrix, rather than construct a new copy of one, use set_zero_matrix.