Skip to content

Quaternionic 5.0: Julia 1.10, Quaternionic.dot, remove old gradients - #120

Merged
moble merged 6 commits into
mainfrom
v5
Oct 7, 2026
Merged

moble merged 6 commits into
mainfrom
v5

Conversation

@moble

@moble moble commented Oct 7, 2026

Copy link
Copy Markdown
Owner
  • Bump Julia compat to 1.10
  • Drop workarounds for lower julia versions
  • Remove old Requires infrastructure in favor of extensions
  • Remove old and nonuniform explicit derivative functions
  • Add in-package pullback and pushforward functions for exp and log
  • Switch AD extensions to use those functions
  • Change behavior of dot on non-QuatVec arguments

moble added 3 commits October 6, 2026 20:41
* Bump Julia compat to 1.10
* Drop workarounds for lower julia versions
* Remove old Requires infrastructure in favor of extensions
* Remove old and nonuniform explicit derivative functions
* Add in-package pullback and pushforward functions for exp and log
* Switch AD extensions to use those functions
* `dot(::QuatVec, ::QuatVec)` still returns the usual vector product
* On other arguments, it's essentially `conj(q) * p`
* Incidentally, bump various compat bounds
@github-actions

github-actions Bot commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

Documentation preview

@moble

moble commented Oct 7, 2026 •

Copy link
Copy Markdown
Owner Author

Release notes:

Breaking changes

  • Julia 1.10 or later is required, and the dependency on Requires.jl is gone.
  • For quaternions, p ⋅ q [equivalently dot(p, q)] now returns the quaternion conj(p) * q, which is the convention LinearAlgebra assumes for numbers. Use real(p ⋅ q) to get the old scalar value. For two QuatVecs, ⋅ still returns the ordinary dot product of the vectors.
  • Some LinearAlgebra functions assume that matrix entries commute, and would give wrong results for matrices of quaternions; they now throw an ArgumentError:
  • The functions ∂log, log∂log, ∂exp, exp∂exp, slerp∂slerp, slerp∂slerp∂τ, and squad∂squad∂t are removed; use an AD package instead. The compute_derivative and compute_angular_velocity keywords of squad still work.
  • New minimum versions: ForwardDiff 1, ChainRulesCore 1.26, Symbolics 7, Latexify 0.16, ReverseDiff 1.16, DifferentiationInterface 0.7.13, GenericLinearAlgebra 0.3.15, and StaticArrays 1.9.8.

Other changes

  • Because of the new dot, generic linear algebra on matrices of quaternions now gives correct results. This covers x' * y, qr, least squares, svd, rank, pinv, and eigen of Hermitian matrices.
  • cholesky now works for Hermitian matrices of quaternions on Julia 1.10.
  • Derivatives of log no longer overflow near the negative real axis when the vector part is tiny.
  • Added links to SphericalFunctions docs for basic conventions.

@codecov

codecov Bot commented Oct 7, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.29%. Comparing base (1452bbf) to head (bd214c3).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #120      +/-   ##
==========================================
+ Coverage   94.99%   95.29%   +0.30%     
==========================================
  Files          30       30              
  Lines        2516     2488      -28     
==========================================
- Hits         2390     2371      -19     
+ Misses        126      117       -9     
Flag Coverage Δ
fast 95.86% <100.00%> (+0.31%) ⬆️
slow 59.18% <80.85%> (-0.27%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ 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 changed the title Update code Quaternionic 5.0: Julia 1.10, quaternionic dot, legacy gradients removed Oct 7, 2026
@moble moble changed the title Quaternionic 5.0: Julia 1.10, quaternionic dot, legacy gradients removed Quaternionic 5.0: Julia 1.10, Quaternionic.dot, remove old gradients Oct 7, 2026
@moble
moble merged commit 8306640 into main Oct 7, 2026
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