#10568: multipying sparse matrices by integers in unnecceraly slow
------------------------------+---------------------------------------------
Reporter: mderickx | Owner: jason, was
Type: enhancement | Status: new
Priority: major | Milestone:
Component: linear algebra | Keywords:
Author: | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
------------------------------+---------------------------------------------
The below shows that a speedup of a factor 20 or more can be obtained in
certain cases
{{{
sage: M=MatrixSpace(QQ,1240,3720,sparse=true)
sage: m=M.random_element(density=4/3720)
sage: time a=2*m
CPU times: user 8.17 s, sys: 0.02 s, total: 8.19 s
Wall time: 8.33 s
sage: time b=diagonal_matrix(QQ,1240,2,sparse=True)*m
CPU times: user 0.33 s, sys: 0.00 s, total: 0.33 s
Wall time: 0.34 s
sage: a==b
True
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/10568>
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.