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

Correcting to right multiply for diffpy #46

Merged
merged 1 commit into from
Jan 13, 2020

Conversation

pc494
Copy link
Member

@pc494 pc494 commented Jan 13, 2020


name: Correcting to right multiply for diffpy
about: This is a bugfix for #28


Release Notes

major
improvement / bugfix

What does this PR do? Please describe and/or link to an open issue.

As detailed in the associated issue, diffpy provides a rotation of the form:
Ans = std @ BR (1)
where std is a known 3x3 matrix and BR is a user defined 3 by 3 matrix. Our code works on the assumption that a solution of the form
Ans = Rotation @ Basis (2)

To tie these two ends together we set
BR = std^{-1} @ Rotation @ std
which when subbed into equation (1) produces
Ans = (std @ std^{-1}) @ Rotation @ std
which corresponds with (2)

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

Successfully merging this pull request may close these issues.

2 participants