-
Notifications
You must be signed in to change notification settings - Fork 75
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
Deviation between MultiVector and MVArray calculation #426
Comments
The issue must be because of incorrect assumption that the inner product is commutative. I've isolated this by debugging the evaluation in both scenarios:
I.e. Python picks the If this is the case, I can create a change, to make code similar to Hope this could help |
Hey @trundev! Thank you for your response. I just reported this bug, I did no further analysis where it comes from. I have the feeling, that clifford is not further maintained, since the last commit is long time ago. For me, the bug is quite annoying, since I have a project, where I want to verify analytical calculations with the help of clifford and now I don't know how far I can trust it. It seems that you have found the cause of this bug here. So maybe, independently of the state of this repo, maybe you can fix it in your own fork and I can just switch to your fork. Best wishes |
hi!, |
Add separate `MultiVector.__ror__` (based on `__or__`), to calculate inner product from swapped operands. This is NOT commutative operation.
Hello, I just created a PR with the changes above: #437. Please let me know if this is done properly. If you are interested I can suggest some more updates, like github workflow fixes and a fix for |
Add test to cover swapped operand operations on MultiVector-s. Esp. the fix for pygae#426.
@arsenovic and @trundev thanks for your help! My programs are now working as expected and in line with the analytical results! 😄 |
Hey guys!
First of all: Thank you very much for this library! It helped me a lot discovering GA 😄
I think I found a bug, because there is a discrepancy between the calculation with MultiVectors and with MVArrays. The chosen algebra is PGA in 3D with
e0*e0 = 0
.My minimal working example code is the following:
The output is given by
From an analytical point of view
a^I = 0
sinceI
has the highest grade.I think the values for
a
are correct, but the scalar productb|I
is wrong.Is this a bug or did I do something wrong?
Best wishes
Johannes
The text was updated successfully, but these errors were encountered: