#10095: Linear algebra with large integer matrices fails with RuntimeError
-------------------------------------+-------------------------------------
Reporter: fredrik.johansson | Owner: jason, was
Type: defect | Status: needs_review
Priority: major | Milestone: sage-6.2
Component: linear algebra | Resolution:
Keywords: | Merged in:
Authors: Travis Scrimshaw | Reviewers:
Report Upstream: N/A | Work issues:
Branch: | Commit:
u/tscrim/ticket/10095 | 3a881677e4a83e4d4de51b95778fabadb5f4e7eb
Dependencies: | Stopgaps:
-------------------------------------+-------------------------------------
Changes (by {'newvalue': u'Travis Scrimshaw', 'oldvalue': ''}):
* commit: => 3a881677e4a83e4d4de51b95778fabadb5f4e7eb
* milestone: sage-duplicate/invalid/wontfix => sage-6.2
* branch: => u/tscrim/ticket/10095
* author: => Travis Scrimshaw
Comment:
Actually, it seems to have been fixed sometime before 6.1:
{{{
sage: M = Matrix(QQ, [[1 for dummy in range(125)]])
sage: V = M.right_kernel()
sage: V
Vector space of degree 125 and dimension 124 over Rational Field
Basis matrix:
124 x 125 dense matrix over Rational Field
sage: MatrixSpace(ZZ,20,20)(1) \ MatrixSpace(ZZ,20,1).random_element()
20 x 1 dense matrix over Rational Field
sage: MatrixSpace(ZZ,200,200)(1) \ MatrixSpace(ZZ,200,1).random_element()
200 x 1 dense matrix over Rational Field
sage: get_memory_usage()
172.796875
sage: A = MatrixSpace(RDF,1000,1000).random_element()
sage: B = MatrixSpace(RDF,1000,1000).random_element()
sage: C = A * B
sage: get_memory_usage()
240.1328125
}}}
My guess is there was a memory leak that was plugged.
I've added a branch which contains the above examples as doctests which
needs review.
----
New commits:
||[http://git.sagemath.org/sage.git/commit/?id=3a881677e4a83e4d4de51b95778fabadb5f4e7eb
3a88167]||{{{Added doctests to matrix_space.py.}}}||
--
Ticket URL: <http://trac.sagemath.org/ticket/10095#comment:7>
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 unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/groups/opt_out.