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.
value | is a value to initialize elements of the main diagonal. |
cColumns | is a number of columns in the created matrix. |
cRows | is a number of rows in the created matrix. |
alloc | is an instance of an allocator object of the Alloc type. |