chsvlib
chsv helper source code

◆ set_zero_matrix()

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

Copy-assigns a default-constructed element, assumed to represent zero, to all elements of the specified matrix.

Template Parameters
ValueTypeA type of a matrix element.
Parameters
[in,out]column_matrixThe matrix assign to.
columnsA number of columns in the assignee matrix pointed to by column_matrix.
rowsA number of rows in the assignee matrix pointed to by column_matrix.

The new matrix value is assigned to the matrix pointed to by column_matrix, that is assignment of elements is invoked rather than the construction. To construct a new matrix in uninitialized space use construct_zero_matrix.