#6628: [with patch, needs review] Singular functions via libSingular
---------------------------------+------------------------------------------
Reporter: malb | Owner: malb
Type: enhancement | Status: new
Priority: major | Milestone: sage-4.1.1
Component: commutative algebra | Keywords: singular, libsingular,
commutative algebra
Reviewer: | Author: Michael Brickenstein, Martin
Albrecht
Merged: |
---------------------------------+------------------------------------------
The attached patch implements the following:
{{{
sage: P = PolynomialRing(GF(127),10,'x')
sage: I = Ideal(P.random_element() for _ in range(3000))
sage: from sage.libs.singular.function import singular_function, lib
sage: groebner = singular_function('groebner')
sage: %time groebner(I)
CPU times: user 0.07 s, sys: 0.00 s, total: 0.08 s
Wall time: 0.08 s
[1]
}}}
For comparison, the Singular pexpect interface needs almost two seconds
for the same task (due to string parsing on both ends, IPC, etc.)
{{{
sage: %time I.groebner_basis()
CPU times: user 0.96 s, sys: 0.24 s, total: 1.21 s
Wall time: 1.92 s
[1]
}}}
This patch requires an updated Singular SPKG (see below).
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/6628>
Sage <http://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
-~----------~----~----~----~------~----~------~--~---