Skip to content

Conversation

@fingolfin
Copy link
Member

@fingolfin fingolfin commented Jan 13, 2026

From Hecke's src/Misc/FiniteField.jl

@codecov
Copy link

codecov bot commented Jan 13, 2026

Codecov Report

❌ Patch coverage is 0% with 44 lines in your changes missing coverage. Please review.
✅ Project coverage is 88.18%. Comparing base (9a25e23) to head (a678fbd).

Files with missing lines Patch % Lines
src/HeckeMiscFiniteField.jl 0.00% 44 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2234      +/-   ##
==========================================
- Coverage   88.29%   88.18%   -0.11%     
==========================================
  Files         100      100              
  Lines       37202    37246      +44     
==========================================
- Hits        32849    32847       -2     
- Misses       4353     4399      +46     

☔ View full report in Codecov by Sentry.
📢 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.

Comment on lines 27 to 43
function (A::fqPolyRepField)(x::zzModPolyRingElem)
u = A()
ccall((:fq_nmod_set, libflint), Nothing,
(Ref{fqPolyRepFieldElem}, Ref{zzModPolyRingElem}, Ref{fqPolyRepField}),
u, x, A)
_reduce(u)
return u
end

function (A::fqPolyRepField)(x::fpPolyRingElem)
u = A()
ccall((:fq_nmod_set, libflint), Nothing,
(Ref{fqPolyRepFieldElem}, Ref{fpPolyRingElem}, Ref{fqPolyRepField}),
u, x, A)
_reduce(u)
return u
end
Copy link
Member Author

Choose a reason for hiding this comment

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

Of course these are yet more coercions, so perhaps instead of moving them here, they should be deleted, or renamed, e.g. they could be set! methods?

Copy link
Member

Choose a reason for hiding this comment

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

The set! methods are unergonomic, since they don't take the parent. So maybe keep it for now, so that we can do the release.

Copy link
Member Author

Choose a reason for hiding this comment

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

Agreed

Copy link
Member

@lgoettgens lgoettgens left a comment

Choose a reason for hiding this comment

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

I would prefer if this would use the @ccall syntax, but that is surely something that can be done in a follow-up. So let's get this release out!

# AbsSimpleNumFieldElem -> QQPolyRingElem
z = QQPolyRingElem()
@ccall libflint.nf_elem_get_fmpq_poly(z::Ref{QQPolyRingElem}, b::Ref{AbsSimpleNumFieldElem}, parent(b)::Ref{AbsSimpleNumField})::Nothing
z.parent = Globals.Qx
Copy link
Member

Choose a reason for hiding this comment

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

Globals.Qx does not exist in Nemo

# QQPolyRingElem -> ZZPolyRingElem, ZZRingElem
zz = ZZPolyRingElem()
@ccall libflint.fmpq_poly_get_numerator(zz::Ref{ZZPolyRingElem}, z::Ref{QQPolyRingElem})::Nothing
zz.parent = Globals.Zx
Copy link
Member

Choose a reason for hiding this comment

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

Globals.Zx does not exist in Nemo

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