Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DiracMatrix * AdjointBiSpinor should throw #68

Open
AntonReinhard opened this issue Oct 11, 2024 · 0 comments
Open

DiracMatrix * AdjointBiSpinor should throw #68

AntonReinhard opened this issue Oct 11, 2024 · 0 comments
Labels
01 - Bug Something isn't working as expected; needs a fix 03 - Confirmed The bug filed in this issue is confirmed by a maintainer good first issue Good for newcomers

Comments

@AntonReinhard
Copy link
Member

Currently, the below code example works:

julia> rand(DiracMatrix) * rand(AdjointBiSpinor)
4-element AdjointBiSpinor with indices SOneTo(4):
  0.05831064669176267 + 1.060921243588353im
   0.4362913483342433 + 1.0602565719746673im
  0.20074057415282742 + 1.4508377616962063im
 -0.44840890838814523 + 1.1177103756306412im

but it should not. It dispatches directly to a StaticArrays implementation of *, so we need to create a specific overload for DiracMatrix * AdjointBiSpinor that throws since it is an illegal operation.

@AntonReinhard AntonReinhard added 01 - Bug Something isn't working as expected; needs a fix 03 - Confirmed The bug filed in this issue is confirmed by a maintainer good first issue Good for newcomers labels Oct 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
01 - Bug Something isn't working as expected; needs a fix 03 - Confirmed The bug filed in this issue is confirmed by a maintainer good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant