set to diagonal: fill all items of matrix with zero except main diagonal items which will be assigned to v
See Implementation
set to diagonal: fill all items of matrix with zero except main diagonal items which will be assigned to v