Repository navigation
Fix derivatives through d of a Rotor that holds derivatives - #73
Merged
Merged
Conversation
ForwardDiff and ReverseDiff failed with a MethodError for `rotor_value` on `d` of a `Rotor` whose components hold derivatives, through `d` itself and through a `dCalculator`, although the same unit quaternion given as a `Quaternion` worked. A lifting calculator of `d` views the caller's rotors through `LiftedValues`, whose indexing called a `rotor_value` defined only for `Quaternion`, and a `Rotor` is not a `Quaternion` in Quaternionic 5. * `.diffreview/`, the narrated reviewer's vocabulary directory, is ignored. * A new test item compares derivatives of `d` of a `Rotor` with those of the same `Quaternion`, through `d` and through a `dCalculator` of one rotor or two, under ForwardDiff and ReverseDiff. * `rotor_value` accepts a `Rotor` as well as a `Quaternion`, and returns a `Quaternion` of the values for both. * The changelog records the fix under a new 3.0.2 section. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #73 +/- ##
=======================================
Coverage 96.88% 96.88%
=======================================
Files 33 33
Lines 4628 4628
=======================================
Hits 4484 4484
Misses 144 144 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
ForwardDiff and ReverseDiff failed with a MethodError for
rotor_valueondof aRotorwhose components hold derivatives, throughditself and through adCalculator, although the same unit quaternion given as aQuaternionworked. A lifting calculator ofdviews the caller's rotors throughLiftedValues, whose indexing called arotor_valuedefined only forQuaternion, and aRotoris not aQuaternionin Quaternionic 5.dof aRotorwith those of the sameQuaternion, throughdand through adCalculatorof one rotor or two, under ForwardDiff and ReverseDiff.rotor_valueaccepts aRotoras well as aQuaternion, and returns aQuaternionof the values for both.