Transpose[{{4,0},{0,2}}] == {{4,0},{0,2}}

Input

(4 | 0
0 | 2)^T = (4 | 0
0 | 2)

Result

True