MAGMA  2.5.4
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.