#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:                       |  
---------------------------------+------------------------------------------

Comment(by PolyBoRi):

 Here some different timings with even better factor: opposite kind of
 example: very tiny input, output and almost nothing to compute, replaces
 some
 singular interpreter call via pexpect with libsingular kernel function
 call

 {{{
 #!python
 from sage.libs.singular import function as sf
 intersect=sf.SingularKernelFunction("intersect")
 sage: P.<x,y,z>=QQ[]
 sage: j=P.ideal(x,z)
 sage: i=P.ideal(x,y)
 sage: timeit("z=i.intersection(j)")
 125 loops, best of 3: 5.12 ms per loop
 sage: timeit("z=intersect(i,j)")
 625 loops, best of 3: 60.9 µs per loop

 }}}

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/6628#comment:8>
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to