#10545: Add the outer product of two vectors
------------------------------+---------------------------------------------
Reporter: rbeezer | Owner: jason, was
Type: enhancement | Status: needs_work
Priority: minor | Milestone: sage-4.7
Component: linear algebra | Keywords:
Author: Rob Beezer | Upstream: N/A
Reviewer: Felix Lawrence | Merged:
Work_issues: |
------------------------------+---------------------------------------------
Changes (by jdemeyer):
* status: positive_review => needs_work
Comment:
During a trial merge of sage-4.7.alpha3, I get the following doctest
error:
{{{
sage -t -force_lib devel/sage/sage/modules/free_module_element.pyx
**********************************************************************
File "/mnt/usb1/scratch/jdemeyer/merger/sage-4.7.alpha3/devel/sage-
main/sage/modules/free_module_element.pyx", line 2292:
sage: z = w.outer_product(v)
Expected:
Traceback (most recent call last):
...
TypeError: unsupported operand parent(s) for '*': 'Full MatrixSpace of
2 by 1 dense matrices over Rational Field' and 'Full MatrixSpac
e of 1 by 4 dense matrices over Finite Field of size 7'
Got:
Traceback (most recent call last):
File
"/mnt/usb1/scratch/jdemeyer/merger/sage-4.7.alpha3/local/bin/ncadoctest.py",
line 1231, in run_one_test
self.run_one_example(test, example, filename, compileflags)
File
"/mnt/usb1/scratch/jdemeyer/merger/sage-4.7.alpha3/local/bin/sagedoctest.py",
line 38, in run_one_example
OrigDocTestRunner.run_one_example(self, test, example, filename,
compileflags)
File
"/mnt/usb1/scratch/jdemeyer/merger/sage-4.7.alpha3/local/bin/ncadoctest.py",
line 1172, in run_one_example
compileflags, 1) in test.globs
File "<doctest __main__.example_57[27]>", line 1, in <module>
z = w.outer_product(v)###line 2292:
sage: z = w.outer_product(v)
File "free_module_element.pyx", line 2307, in
sage.modules.free_module_element.FreeModuleElement.outer_product
(sage/modules/free_mo
dule_element.c:12527)
return self.column()*right.row()
File "element.pyx", line 2282, in
sage.structure.element.Matrix.__mul__ (sage/structure/element.c:15874)
File "coerce.pyx", line 709, in
sage.structure.coerce.CoercionModel_cache_maps.bin_op
(sage/structure/coerce.c:6368)
File "action.pyx", line 139, in
sage.matrix.action.MatrixMatrixAction._call_ (sage/matrix/action.c:2742)
File "matrix_rational_dense.pyx", line 1331, in
sage.matrix.matrix_rational_dense.Matrix_rational_dense.change_ring
(sage/matrix/mat
rix_rational_dense.c:13867)
File "element.pyx", line 1551, in
sage.structure.element.RingElement.__div__
(sage/structure/element.c:12720)
File "coerce.pyx", line 713, in
sage.structure.coerce.CoercionModel_cache_maps.bin_op
(sage/structure/coerce.c:6426)
File "element.pyx", line 1549, in
sage.structure.element.RingElement.__div__
(sage/structure/element.c:12694)
File "integer_mod.pyx", line 2223, in
sage.rings.finite_rings.integer_mod.IntegerMod_int._div_
(sage/rings/finite_rings/integer_mod.
c:19384)
ZeroDivisionError: Inverse does not exist.
**********************************************************************
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/10545#comment:9>
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.