#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:
------------------------------+---------------------------------------------
Description changed by ryan:
Old description:
> Creating a 2000x200 full matrix is much faster than creating a 500x500
> sparse matrix:
>
> {{{
> sage: %time A = random_matrix(ZZ,2000)
> CPU times: user 0.97 s, sys: 0.28 s, total: 1.25 s
> Wall time: 1.25
>
> sage: %time B = random_matrix(ZZ,500,sparse=True)
> CPU times: user 7.20 s, sys: 0.00 s, total: 7.20 s
> Wall time: 7.20
> }}}
New description:
Creating a 2000x2000 full matrix is much faster than creating a 500x500
sparse matrix:
{{{
sage: %time A = random_matrix(ZZ,2000)
CPU times: user 0.97 s, sys: 0.28 s, total: 1.25 s
Wall time: 1.25
sage: %time B = random_matrix(ZZ,500,sparse=True)
CPU times: user 7.20 s, sys: 0.00 s, total: 7.20 s
Wall time: 7.20
}}}
--
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/2705#comment:3>
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.