0

I need Dirac Matrix in my work. They consists of PauliMatrix and ZeroMatrix, which is:

ZeroMatrix:=IdentityMatrix[2]-IdentityMatrix[2]

I define Dirac Matrix as:

gamma = ({{PauliMatrix[0], ZeroMatrix}, {ZeroMatrix, -PauliMatrix[0]}}) // MatrixForm;

I got such result:

enter image description here

But I need something else: I need a monolithic table, does not consist of individual blocks. How can I get it? (I need something universal, because I need to use it to construct 4 gamma matrices and spinors).

user12297
  • 155
  • 4

1 Answers1

2

ArrayFlatten[] takes zeroes as a representation of a zero square matrix:

gamma = {{PauliMatrix[0], 0}, {0, -PauliMatrix[0]}}
ArrayFlatten[gamma]

Which gives {{1, 0, 0, 0}, {0, 1, 0, 0}, {0, 0, -1, 0}, {0, 0, 0, -1}}

SEngstrom
  • 1,711
  • 12
  • 14