Skip to content

Fix eltype of nearest_rotation#301

Merged
hyrodium merged 1 commit into
JuliaGeometry:masterfrom
andreasKroepelin:nearest-rotation-return-eltype
Nov 20, 2025
Merged

Fix eltype of nearest_rotation#301
hyrodium merged 1 commit into
JuliaGeometry:masterfrom
andreasKroepelin:nearest-rotation-return-eltype

Conversation

@andreasKroepelin

Copy link
Copy Markdown
Contributor

Previously, the nearest_rotation of a matrix with eltype Float32 would have an eltype of Float64. This was due to multiplying with a Float64 vector for the determinant correction. I changed the implementation so that this vector has the appropriate eltype. I also added a test for this.

@hyrodium hyrodium left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the PR! The test failures on CI is not related to the changes in this PR.

@hyrodium hyrodium merged commit f4c1ce2 into JuliaGeometry:master Nov 20, 2025
2 of 15 checks passed
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