Initializes a diagonal matrix.
The number of rows or columns
Rest
The elements on the main diagonal
Generated using TypeDoc
Initializes a diagonal matrix.