chsvlib
chsv helper source code

◆ Matrix() [3/16]

Matrix ( const value_type value,
size_type  cColumns,
size_type  cRows,
const allocator_type alloc 
)

Creates a matrix with a specified allocator object as well as numbers of columns and rows such that all elements which appertain to the main diagonal of the created matrix are initialized with a given value.

Parameters
valueis a value to initialize elements of the main diagonal.
cColumnsis a number of columns in the created matrix.
cRowsis a number of rows in the created matrix.
allocis an instance of an allocator object of the Alloc type.