Skip to content

Increase numerical stability of poles for a barycentric model - #22

Merged
tobydriscoll merged 1 commit into
complexvariables:mainfrom
kbarros:main
Dec 30, 2025
Merged

Increase numerical stability of poles for a barycentric model#22
tobydriscoll merged 1 commit into
complexvariables:mainfrom
kbarros:main

Conversation

@kbarros

@kbarros kbarros commented Dec 17, 2025

Copy link
Copy Markdown
Contributor

Since generalized eigvals(E, B) is missing for high-precision floats, we can implement it ourselves using a complex Schur decomposition. This greatly improves the accuracy of the poles calculation, as per the test case in #21 (comment). Fixes #21.

This PR does reorder the poles. Does RFA make implicit guarantees about this ordering?

Apart from this PR, Issue #21 identifies some strange behaviors in approximate with fixed poles. But that seems less pressing.

@codecov

codecov Bot commented Dec 30, 2025

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@tobydriscoll
tobydriscoll merged commit 8c80a9c into complexvariables:main Dec 30, 2025
5 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.

How to find simple pole expansion that maintains high acuracy?

2 participants