Constructs a Matrix with all diagonal values equal to diag and all others equal to 0.
See Implementation
Constructs a Matrix with all diagonal values equal to diag and all others equal to 0.