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

Possible error for quaternion multiplication #7

Open
DavidBoja opened this issue Sep 18, 2020 · 0 comments
Open

Possible error for quaternion multiplication #7

DavidBoja opened this issue Sep 18, 2020 · 0 comments

Comments

@DavidBoja
Copy link

DavidBoja commented Sep 18, 2020

Hi,
not an expert but i believe there might be an error in quaternion multipication in transform_functions.py --> qmul(q, r) function.

w = terms[:, 0, 0] - terms[:, 1, 1] - terms[:, 2, 2] - terms[:, 3, 3]
x = terms[:, 0, 1] + terms[:, 1, 0] - terms[:, 2, 3] + terms[:, 3, 2]
y = terms[:, 0, 2] + terms[:, 1, 3] + terms[:, 2, 0] - terms[:, 3, 1]
z = terms[:, 0, 3] - terms[:, 1, 2] + terms[:, 2, 1] + terms[:, 3, 0]

I believe the terms are correct but the signs are not.
Apologies if i misunderstood the code somehow.

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

No branches or pull requests

1 participant