-
Notifications
You must be signed in to change notification settings - Fork 126
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
Test and fix norm_equation
for RelNumFieldOrder
#4282
Conversation
src/NumberTheory/NmbThy.jl
Outdated
@@ -129,7 +129,7 @@ norm_equation(R::AbsNumFieldOrder, k::Base.Integer; abs::Bool = false) = norm_eq | |||
function norm_equation_fac_elem(R::Hecke.RelNumFieldOrder{AbsSimpleNumFieldElem,Hecke.AbsSimpleNumFieldOrderFractionalIdeal}, a::AbsNumFieldOrderElem{AbsSimpleNumField,AbsSimpleNumFieldElem}) | |||
|
|||
@assert Hecke.is_maximal(R) | |||
Ka, mKa, mkK = absolute_field(Hecke.nf(R)) | |||
Ka, mKa, mkK = Hecke.absolute_field(Hecke.nf(R)) |
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.
So this line needs to be changed further
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.
3dc010e
to
8064151
Compare
Co-authored-by: Tommy Hofmann <[email protected]>
8064151
to
a7dcf1f
Compare
norm_equation
for RelNumFieldOrder
norm_equation
for RelNumFieldOrder
Co-authored-by: Lars Göttgens <[email protected]>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #4282 +/- ##
==========================================
+ Coverage 84.49% 84.53% +0.03%
==========================================
Files 641 641
Lines 85528 85528
==========================================
+ Hits 72269 72303 +34
+ Misses 13259 13225 -34
|
While looking at PR #4261 I noticed the norm equation code for
RelNumFieldOrder
is untested. So I though I could just quickly add a simple test. Sadly it revealed that that code is unrunnable. I applied the first obviously necessary tweak. But it is not enough: there is noHecke.absolute_field
method which takes aHecke.RelSimpleNumField{AbsSimpleNumFieldElem}
(and the methods which do exist seem to have two return values, not three as the code here expects).I think it is more efficient if @fieker has a look at resolving this, he may know immediately what's going on, unlike me :-).
Oh yeah, and next up missing would be a test for
is_irreducible(a::AbsSimpleNumFieldOrderElem)
but I didn't even try to go there 😂