#13170: Speedup the default nonzero test for matrices
-------------------------------+--------------------------------------------
Reporter: SimonKing | Owner: tbd
Type: enhancement | Status: positive_review
Priority: major | Milestone: sage-5.2
Component: performance | Resolution:
Keywords: | Work issues:
Report Upstream: N/A | Reviewers: Javier López Peña
Authors: Simon King | Merged in:
Dependencies: | Stopgaps:
-------------------------------+--------------------------------------------
Changes (by jlopez):
* status: needs_review => positive_review
* reviewer: => Javier López Peña
Comment:
I made my own tests running the following code:
{{{
#!python
for i in [2, 3, 4, 5, 7, 9, 11, 16]:
K = GF(i, "z")
for j in [100,200,300,500,1000]:
M = random_matrix(K, j, j)
bool(M)
M *= 0
bool(M)
}}}
without the patch:
{{{
5 loops, best of 3: 3.68 s per loop
}}}
with the patch:
{{{
5 loops, best of 3: 2.29 s per loop
}}}
So there is some speedup. Code looks harmless and tests pass. Positive
review!
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/13170#comment:2>
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.