-
Notifications
You must be signed in to change notification settings - Fork 33
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
create correct Singular coeffs with create_ring_from_singular_ring #773
create correct Singular coeffs with create_ring_from_singular_ring #773
Conversation
Would it be possible to add a minimal test case? |
ping @hannes14 |
Thanks for adding the test. The OscarCI tests fail with a genuine error:
@hannes14 could you have a look what's going on there? |
OK the error can be reproduce here, too, if one changes the final line of the new test to @test base_ring(R) == base_ring(S) which is arguably what we should use anyway. |
src/poly/poly.jl
Outdated
base_ring(R::PolyRing{N_Field{T}}) where T <: Nemo.RingElem = R.base_ring::parent_type(T) | ||
base_ring(R::PolyRing{N_Ring{T}}) where T <: Nemo.RingElem = R.base_ring::parent_type(T) |
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.
Isn't this just (unsuccessfully) papering over the actual issue
c3ecd0f
to
5283b45
Compare
I've pushed a change which should fix the immediate issue, I think, but let's see what CI reports. |
I have another potential simplification of the code: use |
cf = libSingular.nCopyCoeff(c) | ||
data_ptr = libSingular.nGetCoeffData(cf) | ||
R = unsafe_pointer_to_objref(data_ptr) | ||
basering = CoefficientRing(R) # FIXME: should we set cache=false ? |
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 now uses CoefficientRing
which apparently was made for just this kind of purpose... It even looks up existing wrappers
@fingolfin Passes the tests,shall be merged. |
Merged. Now libsingular_jll needs to be updated again, and after Singular.jl, and then a release... Can you take care of it, @hannes14 ? |
…scar-system#773) Co-authored-by: Max Horn <[email protected]>
should help with oscar-system/Oscar.jl#3088