#12865: vector matrix multiply causes segfault
-------------------------------------------------+-------------------------
Reporter: roed | Owner: jason,
Type: defect | was
Priority: critical | Status:
Component: linear algebra | needs_info
Keywords: linbox, segfault | Milestone: sage-6.4
Authors: | Resolution:
Report Upstream: Fixed upstream, in a later | Merged in:
stable release. | Reviewers:
Branch: | Work issues:
Dependencies: | Commit:
| Stopgaps:
-------------------------------------------------+-------------------------
Comment (by darij):
{{{
sage: vector(1/1) * matrix(Zmod(2),[[1]])
---------------------------------------------------------------------------
TypeError Traceback (most recent call
last)
<ipython-input-3-802e5729e726> in <module>()
----> 1 vector(Integer(1)/Integer(1)) *
matrix(Zmod(Integer(2)),[[Integer(1)]])
/home/darij/sage-6.3.beta6/local/lib/python2.7/site-
packages/sage/structure/element.so in
sage.structure.element.Vector.__mul__
(build/cythonized/sage/structure/element.c:20577)()
/home/darij/sage-6.3.beta6/local/lib/python2.7/site-
packages/sage/structure/coerce.so in
sage.structure.coerce.CoercionModel_cache_maps.bin_op
(build/cythonized/sage/structure/coerce.c:8764)()
TypeError: unsupported operand parent(s) for '*': 'Vector space of
dimension 1 over Rational Field' and 'Full MatrixSpace of 1 by 1 dense
matrices over Ring of integers modulo 2'
sage: vector(1/1) * matrix(Zmod(11),[[1]])
---------------------------------------------------------------------------
TypeError Traceback (most recent call
last)
<ipython-input-4-9ab2f0f0d5e1> in <module>()
----> 1 vector(Integer(1)/Integer(1)) *
matrix(Zmod(Integer(11)),[[Integer(1)]])
/home/darij/sage-6.3.beta6/local/lib/python2.7/site-
packages/sage/structure/element.so in
sage.structure.element.Vector.__mul__
(build/cythonized/sage/structure/element.c:20577)()
/home/darij/sage-6.3.beta6/local/lib/python2.7/site-
packages/sage/structure/coerce.so in
sage.structure.coerce.CoercionModel_cache_maps.bin_op
(build/cythonized/sage/structure/coerce.c:8764)()
TypeError: unsupported operand parent(s) for '*': 'Vector space of
dimension 1 over Rational Field' and 'Full MatrixSpace of 1 by 1 dense
matrices over Ring of integers modulo 11'
}}}
So, obsolete?
--
Ticket URL: <http://trac.sagemath.org/ticket/12865#comment:19>
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/d/optout.