#2705: random_matrix with sparse=True is very slow
------------------------------+---------------------------------------------
   Reporter:  dfdeshom        |          Owner:  was       
       Type:  enhancement     |         Status:  needs_info
   Priority:  major           |      Milestone:  sage-4.7.1
  Component:  linear algebra  |       Keywords:            
Work_issues:                  |       Upstream:  N/A       
   Reviewer:                  |         Author:            
     Merged:                  |   Dependencies:            
------------------------------+---------------------------------------------

Comment(by ryan):

 I noted that even when we specify the density of nonzero entries, a sparse
 matrix still takes a significant amount of time.

 {{{
 sage: time B = random_matrix(ZZ, 2000, density=.05, sparse=True)
 Time: CPU 7.02 s, Wall: 8.77 s
 sage: time A = random_matrix(ZZ 2000, density=.05, sparse=False)
 Time: CPU 1.20 s, Wall: 1.70 s
 }}}

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