Changes between Initial Version and Version 1 of Ticket #16719


Ignore:
Timestamp:
07/27/14 07:59:10 (5 years ago)
Author:
rws
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #16719

    • Property Keywords libgap added
    • Property Component changed from interfaces to combinatorics
    • Property Summary changed from not all gap integers get converted to replace gap.eval with libgap.eval in combinat/combinat.py
  • Ticket #16719 – Description

    initial v1  
    1818TypeError: unable to convert x (=<integer 301...000 (2566 digits)>) to an integer
    1919}}}
    20 Alternatively, this ticket may discuss abandoning the GAP expect interface for such big number results and use libpari instead.
     20The way to go would be to replace `gap.eval` with `libgap.eval` and it's faster, too:
     21{{{
     22sage: timeit('Integer(gap.eval("Stirling1(100,2)"))')
     23625 loops, best of 3: 419 µs per loop
     24sage: timeit('libgap.eval("Stirling1(100,2)").sage()')
     25625 loops, best of 3: 125 µs per loop
     26sage: timeit('libgap.eval("Stirling1(1000,2)").sage()')
     27125 loops, best of 3: 6.45 ms per loop
     28}}}