I want to use R to work with simple complex matrices, such as the Pauli matrices and Dirac gamma matrices. The problem I have is that the way R prints complex numbers by default makes such matrices hard to read. For example, the complex number i is usually printed 0 + 1 i. When a matrix contains both real and complex numbers, the real numbers are printed, for example, 1 + 0 i. Consequently, the second Pauli matrix would be printed
0 + 0 i 0 - 1 i
0 + 1 i 0 + 0 i
What can I do to get it to print out instead as
0 - i
i 0
please? This is clearly much easier to understand at a quick glance.