#5402: Sparse determinants are slow
---------------------------------------+------------------------------------
       Reporter:  jbandlow             |         Owner:  was         
           Type:  enhancement          |        Status:  needs_review
       Priority:  major                |     Milestone:  sage-5.6    
      Component:  linear algebra       |    Resolution:              
       Keywords:  determinant          |   Work issues:              
Report Upstream:  N/A                  |     Reviewers:              
        Authors:  Charles Bouillaguet  |     Merged in:              
   Dependencies:                       |      Stopgaps:              
---------------------------------------+------------------------------------
Changes (by {'newvalue': u'Charles Bouillaguet', 'oldvalue': ''}):

  * status:  needs_work => needs_review
  * author:  => Charles Bouillaguet


Comment:

 With patch applied:
 {{{
 sage: dd = {(0,0):1}
 sage: %timeit matrix(100,dd).det()
 125 loops, best of 3: 7.04 ms per loop
 sage: %timeit matrix(100,dd,sparse = False).det()
 25 loops, best of 3: 16.3 ms per loop
 }}}

 So that now the sparse case is faster! I really don't understand why
 tough, because it converts the matrix to a dense representation before
 computing the (dense) det...

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