#5345: [with patch, needs work] Optimize transpose for dense matrices
----------------------------+-----------------------------------------------
Reporter: rbeezer | Owner: rbeezer
Type: enhancement | Status: new
Priority: major | Milestone: sage-3.4.1
Component: linear algebra | Keywords: transpose
----------------------------+-----------------------------------------------
Comment(by ylchapuy):
I think we can obtain a much bigger speedup if we replace the inner loop:
{{{
...
for i in xrange(nr):
f.append(e[i*nc+j])
...
}}}
with
{{{
...
f.extend(e[j::nc])
...
}}}
and we should do just the same thing for antitranspose a few lines further
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/5345#comment:3>
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
-~----------~----~----~----~------~----~------~--~---