Skip to content

Fix derivatives through d of a Rotor that holds derivatives - #73

Merged
moble merged 1 commit into
mainfrom
rotor-duals
Nov 17, 2026
Merged

moble merged 1 commit into
mainfrom
rotor-duals

Conversation

@moble

@moble moble commented Nov 17, 2026

Copy link
Copy Markdown
Owner

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.

  • 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.

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

codecov Bot commented Nov 17, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.88%. Comparing base (225ec60) to head (7e4b3ff).
⚠️ Report is 2 commits behind head on main.

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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@moble
moble merged commit fef0d08 into main Nov 17, 2026
8 checks passed
@moble
moble deleted the rotor-duals branch November 17, 2026 16:41
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.

1 participant