Merge branch 'develop' into documentation

This commit is contained in:
fjosw 2021-11-18 12:40:15 +00:00
commit b1b7d5f54d

View file

@ -20,13 +20,10 @@ class Npr_matrix(np.ndarray):
def g5H(self): def g5H(self):
"""Gamma_5 hermitean conjugate """Gamma_5 hermitean conjugate
Returns gamma_5 @ M.T.conj() @ gamma_5 and exchanges in and out going Uses the fact that the propagator is gamma5 hermitean, so just the
momenta. Works only for 12x12 matrices. in and out momenta of the propagator are exchanged.
""" """
if self.shape != (12, 12): return Npr_matrix(self,
raise Exception('g5H only works for 12x12 matrices.')
extended_g5 = np.kron(np.eye(3, dtype=int), gamma5)
return Npr_matrix(matmul(extended_g5, self.conj().T, extended_g5),
mom_in=self.mom_out, mom_in=self.mom_out,
mom_out=self.mom_in) mom_out=self.mom_in)