#14007: When computing determinant over GF(p), don't lift to ZZ
----------------------------------+-----------------------------------------
Reporter: jdemeyer | Owner: jason, was
Type: enhancement | Status: needs_work
Priority: blocker | Milestone: sage-5.7
Component: linear algebra | Resolution:
Keywords: | Work issues:
Report Upstream: N/A | Reviewers: Charles Bouillaguet
Authors: Jeroen Demeyer | Merged in:
Dependencies: | Stopgaps:
----------------------------------+-----------------------------------------
Comment (by Bouillaguet):
The threshold is very clearly at ``2^64``. This is with the patch:
{{{
sage: p = next_prime(2^64-60)
sage: M = random_matrix( Integers(p), 75*5 )
sage: M2 = matrix(ZZ, M)
sage: time d = M.det()
Time: CPU 3.49 s, Wall: 3.49 s # PARI prime case is faster
sage: time d = M2.det()
Time: CPU 6.29 s, Wall: 5.09 s
sage: p = next_prime(2^64)
sage: M = random_matrix( Integers(p), 75*5 )
sage: M2 = matrix(ZZ, M)
sage: time d = M.det()
Time: CPU 8.83 s, Wall: 8.83 s # PARI prime case is slower
sage: time d = M2.det()
Time: CPU 6.77 s, Wall: 5.52 s
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/14007#comment:7>
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 unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.