#12290: Fix the hash of matrix spaces and improve its performance
------------------------------+---------------------------------------------
Reporter: SimonKing | Owner: jason, was
Type: defect | Status: needs_work
Priority: critical | Milestone: sage-5.0
Component: linear algebra | Keywords: hash matrix space
Work_issues: | Upstream: N/A
Reviewer: | Author: Simon King
Merged: | Dependencies:
------------------------------+---------------------------------------------
Changes (by SimonKing):
* status: needs_review => needs_work
Comment:
make ptest results in one error:
{{{
sage -t -force_lib "devel/sage/sage/matrix/matrix2.pyx"
**********************************************************************
File
"/home/simon/SAGE/sage-4.8.alpha3/devel/sage/sage/matrix/matrix2.pyx",
line 581:
sage: B.elementwise_product(C).is_sparse()
Exception raised:
Traceback (most recent call last):
File "/home/simon/SAGE/sage-4.8.alpha3/local/bin/ncadoctest.py",
line 1231, in run_one_test
self.run_one_example(test, example, filename, compileflags)
File "/home/simon/SAGE/sage-4.8.alpha3/local/bin/sagedoctest.py",
line 38, in run_one_example
OrigDocTestRunner.run_one_example(self, test, example, filename,
compileflags)
File "/home/simon/SAGE/sage-4.8.alpha3/local/bin/ncadoctest.py",
line 1172, in run_one_example
compileflags, 1) in test.globs
File "<doctest __main__.example_9[34]>", line 1, in <module>
B.elementwise_product(C).is_sparse()###line 581:
sage: B.elementwise_product(C).is_sparse()
File "matrix2.pyx", line 626, in
sage.matrix.matrix2.Matrix.elementwise_product
(sage/matrix/matrix2.c:5345)
File "element.pyx", line 2994, in
sage.structure.element.canonical_coercion (sage/structure/element.c:20329)
File "element.pyx", line 3011, in
sage.structure.element.canonical_coercion (sage/structure/element.c:20245)
File "coerce.pyx", line 939, in
sage.structure.coerce.CoercionModel_cache_maps.canonical_coercion
(sage/structure/coerce.c:9043)
TypeError: no common canonical parent for objects with parents: 'Full
MatrixSpace of 5 by 6 sparse matrices over Integer Ring' and 'Full
MatrixSpace of 5 by 6 sparse matrices over Rational Field'
**********************************************************************
1 items had failures:
1 of 50 in __main__.example_9
***Test Failed*** 1 failures.
For whitespace errors, see the file /home/simon/.sage//tmp/matrix2_8852.py
[19.4 s]
}}}
Quite an interesting error, I think!
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/12290#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.