Vector and Matrix Types

TBW

using QEDcore

Lorentz Vectors

lv = rand(SLorentzVector)
4-element SLorentzVector{Float64} with indices SOneTo(4):
 0.7877875148893451
 0.9391930904002346
 0.09254511765394302
 0.3339562956301776

Bispinors and Adjoint Bispinors

bs = rand(BiSpinor)
4-element BiSpinor with indices SOneTo(4):
 0.04856774780804296 + 0.5897727367705005im
 0.27296393133432306 + 0.45496678930265166im
  0.6351329093902924 + 0.4405632622466853im
  0.7094777360020168 + 0.17270689205332812im
abs = rand(AdjointBiSpinor)
4-element AdjointBiSpinor with indices SOneTo(4):
 0.18942755866892025 + 0.07729932850758181im
  0.8269549710647024 + 0.9102087077940483im
 0.04998840525410053 + 0.9071586790426562im
   0.853069386283535 + 0.39919104145015327im
abs * bs
-0.05639563309012752 + 1.768902164009467im

Dirac and Gamma Matrices

gm = rand(DiracMatrix)
4×4 DiracMatrix with indices SOneTo(4)×SOneTo(4):
  0.374143+0.0543363im    0.5883+0.0450129im  …  0.874102+0.77587im
  0.321317+0.153974im    0.38628+0.610824im      0.648196+0.5664im
  0.107279+0.609657im   0.668405+0.323731im      0.141522+0.678745im
 0.0891661+0.642509im   0.237834+0.320586im      0.505975+0.610649im
abs * gm * bs
-4.03531662130135 + 1.8377681491436098im

This page was generated using Literate.jl.