MAGMA  2.6.2
Matrix Algebra for GPU and Multicore Architectures

\( A_{ij} = \) diag if \( i=j \); \( A_{ij} = \) offdiag otherwise.

\( A_{ij} = \) diag if \( i=j \); \( A_{ij} = \) offdiag otherwise.