-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove calls to PolyRing(R) #1729
base: master
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1729 +/- ##
==========================================
- Coverage 87.32% 85.94% -1.39%
==========================================
Files 117 117
Lines 29768 29747 -21
==========================================
- Hits 25996 25565 -431
- Misses 3772 4182 +410 ☔ View full report in Codecov by Sentry. |
I am not a fan of using the not exported function |
|
I understand your points. But an annoying drawback of
|
But how is this different from many of the calls to |
src/Poly.jl
Outdated
|
||
Uses the Newton (or Newton-Girard) identities to obtain the polynomial | ||
with given sums of powers of roots. The list must be nonempty and contain | ||
`degree(f)` entries where $f$ is the polynomial to be recovered. The list | ||
must start with the sum of first powers of the roots. | ||
""" | ||
function power_sums_to_polynomial(P::Vector{T}; | ||
parent::PolyRing{T}=PolyRing(parent(P[1]))) where T <: RingElement | ||
function power_sums_to_polynomial(P::Vector{T}; parent::PolyRing{T}) where T <: RingElement |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This signature is identical to the one 4 lines below (up to kwargs). And since julia ignores the kwargs for dispatch, it cannot decide between the two
All of those are also bad (see also the now removed justification for the existence of
Maybe. I am not sure this is something we need to document for end users, though, but sure something for dev docs. The name That would keep it separate from
Maybe. |
Thanks for working this idea out! I like the idea of having an internal |
62504fa
to
fb5ccfd
Compare
No description provided.