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

Lt spinor arithmetic is broken #463

Open
eric-wieser opened this issue Sep 24, 2020 · 0 comments
Open

Lt spinor arithmetic is broken #463

eric-wieser opened this issue Sep 24, 2020 · 0 comments

Comments

@eric-wieser
Copy link
Member

These breakages happen because Lt has two completely different internal representations (self.R vs self.lt_dict) that are chosen base on the constructor (.spinor = True vs .spinor = False), and most of the methods pick between them.

>>> base = Ga('a b', g=[1, 1], coords=symbols('x, y', real=True))
>>> R = base.mv('R', 'spinor')
>>> f = base.lt(R)

>>> f
R = R + R__xy*a^b

>>> f + f
Lt(a) = 0
Lt(b) = 0

>>> f * 2
Lt(a) = 0
Lt(b) = 0

My recommendation would be to eliminate the spinor representation entirely, and just convert to lt_dict at construction.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant