#11005: Update Simon's GP scripts and convert to use via gp2c
-------------------------------+--------------------------------------------
Reporter: cremona | Owner: cremona
Type: enhancement | Status: needs_review
Priority: major | Milestone: sage-5.0
Component: elliptic curves | Keywords:
Author: John Cremona | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
-------------------------------+--------------------------------------------
Changes (by cremona):
* cc: was (added)
* status: new => needs_review
Old description:
> 1. Denis Simon's GP scripts (in data/extcode/pari/simon) need updating.
>
> 2. Using them via gp2c would be more efficient.
>
> The scripts have been combined into one and revised to make the gp2c-
> compliant, and gp2c has been used to make a single C file from them.
> This can be compiled (once, on building Sage) into a shared library file
> which can then be used in a GP session, the result being faster running
> of all the functions.
>
> To implement this we (1) created a new spkg containing the C file, which
> on bring installed puts tha .so into data/extcode/pari/simon (together
> with a helper GP script); (2) patched the extcode repository (removing
> the old scripts); (3) patched the sage library repository, mainly to
> adapt the interface in elliptic_curves/gp_simon.py but also to correct
> the doctest output (due to the script upgrade giving different generators
> in some cases).
>
> So there are two patches and an spkg needed! I have them all and will
> attach them shortly.
New description:
1. Denis Simon's GP scripts (in data/extcode/pari/simon) need updating.
2. Using them via gp2c would be more efficient.
The scripts have been combined into one and revised to make the gp2c-
compliant, and gp2c has been used to make a single C file from them. This
can be compiled (once, on building Sage) into a shared library file which
can then be used in a GP session, the result being faster running of all
the functions.
To implement this we (1) created a new spkg containing the C file, which
on bring installed puts tha .so into data/extcode/pari/simon (together
with a helper GP script); (2) patched the extcode repository (removing
the old scripts); (3) patched the sage library repository, mainly to
adapt the interface in elliptic_curves/gp_simon.py but also to correct the
doctest output (due to the script upgrade giving different generators in
some cases).
So there are two patches and an spkg needed! I have attached them all:
1. Apply the patch trac_11005-simon-sage.patch to the sage library.
2. Apply the patch trac_11005-simon-extcode.patch to the extcode branch
3. Apply the spkg using "sage -f".
No doubt I will be told that I should have done something differently, but
this is enough for people to test. The main thing which will need
checking on different platforms is whether the compile commands in the
spkg-install work OK. (I borrowed code from the ratpoints spkg.)
--
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11005#comment:1>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.