#4772: [with patch; needs review] make determinants of matrices over GF(2) way
faster
----------------------------+-----------------------------------------------
 Reporter:  was             |        Owner:  was       
     Type:  enhancement     |       Status:  new       
 Priority:  major           |    Milestone:  sage-3.2.2
Component:  linear algebra  |   Resolution:            
 Keywords:                  |  
----------------------------+-----------------------------------------------
Changes (by was):

  * summary:  make determinants of matrices over GF(2) way faster => [with
              patch; needs review] make determinants of
              matrices over GF(2) way faster

Comment:

 BEFORE:
 {{{
 sage: w = random_matrix(GF(2),1000)
 sage: time w.determinant()
 CPU times: user 174.27 s, sys: 0.01 s, total: 174.29 s
 Wall time: 174.30 s
 0
 }}}

 AFTER:
 {{{
 sage: w = random_matrix(GF(2),1000)
 sage: timeit('w._clear_cache(); w.determinant()')
 125 loops, best of 3: 5.48 ms per loop
 }}}

 For a speedup of a factor of a factor of over THIRTY THOUSAND (!):
 {{{
 sage: 174/(5.48*10^(-3))
 31751.8248175182
 }}}

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/4772#comment:1>
Sage <http://sagemath.org/>
Sage - Open Source Mathematical Software: Building the Car Instead of 
Reinventing the Wheel
--~--~---------~--~----~------------~-------~--~----~
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