Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add
realdot
#2New 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
Add
realdot
#2Changes from 18 commits
537fbad
4b08ee2
15ae11e
262f9a9
8a750f2
b91d03d
360dcb9
d6ba3be
25bbc2a
638a6f5
96b44e9
073001f
ce9c71e
5de6e9b
e48caee
5618631
7194ee9
1ecb63d
c6d1099
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Quaternions aren't multiplicatively commutative, so this does not work:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Haha yeah I guess it's clear that I've never worked with quaternions 😄 In fact for the tests it does not matter and the result could be anything since
Quaternion
will use the fallback definitionrealdot(x, y) = real(dot(x, y))
and hence tests will always pass, regardless of whetherdot
is implemented correctly or not, as long as some value can be computed. Of course, I'll fix it so that it seems that I know what I am doing here even though I just copy stuff from Quaternions 😄There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be fixed now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, quaternions are super useful as a sanity check for chain rules of numers/numerical arrays, since they behave like matrices. I have probably thought way too much about them.