-
-
Notifications
You must be signed in to change notification settings - Fork 488
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
Add interface to PARI's rnfisnorm() #2329
Comments
Attachment: trac-2329.patch.gz |
comment:1
I have some questions. There seems to be two things in this patch: changes to pari/gen, and access to stuff to do with norms. Is the latter independent of the former? I'd be a lot happier with the latter if that's true, because I'm not expert in the Pari interface. Also, what relation does this have to "elements_of_norm"? There needs to be some unification, I think. Also, having is_norm() not always return a boolean is not good, IMO. I say is_norm -> Boolean and element_of_norm raises an exception if is_norm is not True. I will gladly referee and have cc'ed myself. |
comment:4
Craig, what's the status on this patch? I need it as we speak :) Are you interested in completing this or should I implement the changes I think are necessary and kick it back to you for refereeing? |
comment:5
Nick, I'd be more than happy to have you finish this guy off. I think all the code is there, it just needs to be cleaned up and unified here and there. I just haven't had time to get back to it since you posted the referee report -- but if you want to clean this up, I'll review it for you lickety-split. |
comment:6
Added a second patch that addresses all of the above issues. |
comment:7
Attachment: trac-2329-pt2.patch.gz |
comment:8
Attachment: 2329-ccitro-pari-indexing-fixes-1.patch.gz The last patch separates out very useful fixes to the pari/gen.pyx that should be applied now. The remainder of the functionality requires some more substantial changes and is a work in progress. |
Changed keywords from none to editor_craigcitro |
comment:10
This has been sitting around forever. Any movement here? Cheers, Michael |
comment:12
Same question as mabshoff 22 months ago... |
This comment has been minimized.
This comment has been minimized.
Author: Craig Citro, Marco Streng |
comment:13
As nobody replied here any more, I attacked the ticket myself by changing Craig's patch. I've addressed Nick's concerns and replaced the documentation to reflect better what is in the Pari documentation (which weakens some claims considerably unfortunately). x.is_norm() now decides whether an element x is a norm (proven output), while x.rnfisnorm() gives exactly the output that Pari's rnfisnorm would give. The output of is_norm is True or False. With element=True, it also gives an element of norm x (or None if it doesn't exist). The function element_of_norm is removed, to avoid confusion with elements_of_norm. |
Reviewer: Nick Alexander |
Attachment: trac_2329_rnfisnorm.patch.gz apply only this latest file |
comment:50
I have a new patch to change the Selmer group test, since the signs can change randomly. Needs review. |
This comment has been minimized.
This comment has been minimized.
comment:52
Probably related, I got this on x86 with 4.7.alpha2
The log is from a friend of mine who has it as well on x86 but it doesn't show up on his amd64 hardware. I cannot test on amd64 or OSX at the present time. |
Work Issues: fix on 32-bit |
comment:53
Replying to @kiwifb:
Good to know this. But keep in mind that sage-4.7.alpha2 has not been released (not even sage-4.7.alpha0). In the future it would be better to test released versions with patches applied instead of unreleased versions. I will test this patch on a 32-bit system and see what needs to be fixed. |
Attachment: 2329_selmer.patch.gz Additional patch |
This comment has been minimized.
This comment has been minimized.
Changed work issues from fix on 32-bit to none |
comment:56
I can confirm that the doctest now passes on a 32-bit build of sage-4.7.alpha1 on OpenSolaris 06/2009 (Intel Xeon chip)
Prior to adding the 3 patches to sage-4.7.alpha1, I got.
I don't know enough about the maths to understand what the patch does, so whilst it appears to fix the problems I see in sage-4.7.alpha1, I don't feel I should give this a positive review - it needs a mathematician to check it too. Dave |
Changed reviewer from Nick Alexander, David Loeffler, Jeroen Demeyer to Nick Alexander, David Loeffler, Jeroen Demeyer, David Kirkby |
comment:57
David, could you please test both with and without |
comment:58
Replying to @jdemeyer:
With the patch applied, it is taking about 22 seconds without -long, and 46 seconds with -long. If the patch is not applied, it fails with or without -long. |
comment:59
Looks OK to me. |
Merged: sage-4.7.alpha2 |
This patch adds support to solve norm equations via PARI.
Quick summary: given an element
x
of any number field (evenQQ
),x.is_norm(L)
will returnTrue
if and only ifx
is a norm fromL
. It is also able to return an element ofL
whose norm isx
.The data used by PARI to compute whether or not an element is a norm can be computed once for each extension
L/K
. The functionpari_rnfnorm_data
computes exactly this, and hopefully in a later version its result can be passed tois_norm
to avoid recomputing it each time in the case thatK != QQ
. IfK
isQQ
, there is no need to save any such data -- the only data needed is that ofK.pari_bnf()
, which is used instead, and is already cached byK
.Dependencies: #10677
Apply:
CC: @ncalexan @mstreng @jdemeyer
Component: number fields
Keywords: editor_craigcitro pari
Author: Craig Citro, Marco Streng, Francis Clarke, Jeroen Demeyer
Reviewer: Nick Alexander, David Loeffler, Jeroen Demeyer, David Kirkby
Merged: sage-4.7.alpha2
Issue created by migration from https://trac.sagemath.org/ticket/2329
The text was updated successfully, but these errors were encountered: