Skip to content

Implement Polynomial_real_arb#41306

Merged
vbraun merged 5 commits intosagemath:developfrom
user202729:polynomial-real-arb
Jan 6, 2026
Merged

Implement Polynomial_real_arb#41306
vbraun merged 5 commits intosagemath:developfrom
user202729:polynomial-real-arb

Conversation

@user202729
Copy link
Copy Markdown
Contributor

@user202729 user202729 commented Dec 18, 2025

Mostly copy-paste from Polynomial_complex_arb with acb replaced with arb.

For ease of reviewing, the change is split into two commits, the first one is copy-paste (thus can be easily diffed against Polynomial_complex_arb), and the second one is the change on top of that.

Results in a large speedup (especially for multiplication of polynomials with coefficients all having similar magnitudes, since flint use FFT when appropriate with $O(n \log n)$ algorithm, while Sage generic implementation mostly use schoolbook).

The documentation doesn't show up on the website (HTML), but polynomial_complex_arb doesn't show up either, so this is mostly out of scope. To make it show up, one need appropriate .rst file in src/doc/en/reference (they were originally generated with sphinx-autodoc, I think)

📝 Checklist

  • The title is concise and informative.
  • The description explains in detail what this PR is about.
  • I have linked a relevant issue or discussion.
  • I have created tests covering the changes.
  • I have updated the documentation and checked the documentation preview.

⌛ Dependencies

@user202729 user202729 force-pushed the polynomial-real-arb branch 3 times, most recently from 14e1500 to a4554a6 Compare December 18, 2025 07:12
@github-actions
Copy link
Copy Markdown

github-actions bot commented Dec 18, 2025

Documentation preview for this PR (built with commit f6d8d4e; changes) is ready! 🎉
This preview will update shortly after each push to this PR.

Copy link
Copy Markdown
Collaborator

@tscrim tscrim left a comment

Choose a reason for hiding this comment

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

Feel free to change or ignore. Once decided (and possibly done), you can set a positive review.

Comment thread src/sage/rings/polynomial/polynomial_real_arb.pyx Outdated
vbraun pushed a commit to vbraun/sage that referenced this pull request Jan 4, 2026
sagemathgh-41306: Implement Polynomial_real_arb
    
Mostly copy-paste from `Polynomial_complex_arb` with `acb` replaced with
`arb`.

For ease of reviewing, the change is split into two commits, the first
one is copy-paste (thus can be easily diffed against
`Polynomial_complex_arb`), and the second one is the change on top of
that.

Results in a large speedup (especially for multiplication of polynomials
with coefficients all having similar magnitudes, since flint use FFT
when appropriate with $O(n \log n)$ algorithm, while Sage generic
implementation mostly use schoolbook).

The documentation doesn't show up on the website (HTML), but
`polynomial_complex_arb` doesn't show up either, so this is mostly out
of scope. To make it show up, one need appropriate `.rst` file in
`src/doc/en/reference` (they were originally generated with sphinx-
autodoc, I think)

### 📝 Checklist

<!-- Put an `x` in all the boxes that apply. -->

- [x] The title is concise and informative.
- [x] The description explains in detail what this PR is about.
- [x] I have linked a relevant issue or discussion.
- [x] I have created tests covering the changes.
- [ ] I have updated the documentation and checked the documentation
preview.

### ⌛ Dependencies

<!-- List all open PRs that this PR logically depends on. For example,
-->
<!-- - sagemath#12345: short description why this is a dependency -->
<!-- - sagemath#34567: ... -->
    
URL: sagemath#41306
Reported by: user202729
Reviewer(s): Travis Scrimshaw, user202729
@vbraun vbraun merged commit e79d621 into sagemath:develop Jan 6, 2026
30 of 33 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.

3 participants