#10752: Matrix pivots are cached, should be immutable
------------------------------+---------------------------------------------
   Reporter:  rbeezer         |       Owner:  jason, was     
       Type:  defect          |      Status:  positive_review
   Priority:  minor           |   Milestone:  sage-4.7       
  Component:  linear algebra  |    Keywords:  matrix pivots  
     Author:  John Palmieri   |    Upstream:  N/A            
   Reviewer:  Rob Beezer      |      Merged:                 
Work_issues:                  |  
------------------------------+---------------------------------------------

Comment(by jhpalmieri):

 Some timing.  With the old version:
 {{{
 sage: random_matrix(QQ, 3).pivots()
 [0, 1, 2]
 sage: timeit('random_matrix(QQ, 200).pivots()')
 5 loops, best of 3: 85.1 ms per loop
 }}}
 With the new version:
 {{{
 sage: random_matrix(QQ, 3).pivots()
 (0, 1, 2)
 sage: timeit('random_matrix(QQ, 200).pivots()')
 5 loops, best of 3: 85.7 ms per loop
 }}}

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