#5974: [with patch; needs review] the generic linear_combination_of_rows and
linear_combination_of_columns functions for matrices are very stupidly
slotch
----------------------------+-----------------------------------------------
 Reporter:  was             |       Owner:  was     
     Type:  defect          |      Status:  new     
 Priority:  major           |   Milestone:  sage-4.0
Component:  linear algebra  |    Keywords:          
----------------------------+-----------------------------------------------
 Behold.  By replacing about 40 confusing lines by 2 trivial lines, I get a
 *speedup* by more than a factor of 10!

 {{{
 BEFORE:
 sage: A = random_matrix(QQ,50)
 sage: v = [1..50]
 sage: timeit('A.linear_combination_of_rows(v)')
 125 loops, best of 3: 5.48 ms per loop

 AFTER:
 sage: A = random_matrix(QQ,50)
 sage: v = [1..50]
 sage: timeit('A.linear_combination_of_rows(v)')
 625 loops, best of 3: 503 µs per loop

 }}}

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/5974>
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