#9377: unable to coerce matrix over finite field into magma
---------------------------+------------------------------------------------
Reporter: mariah | Owner: somebody
Type: defect | Status: needs_work
Priority: minor | Milestone: sage-4.5
Component: interfaces | Keywords:
Author: Kwankyu Lee | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
---------------------------+------------------------------------------------
Changes (by mariah):
* status: needs_review => needs_work
Comment:
{{{
Using magma-2.16-11, I get the following with this patch
eno% ./sage
----------------------------------------------------------------------
| Sage Version 4.4.4.1, Release Date: 2010-06-28 |
| Type notebook() for the GUI, and license() for information. |
----------------------------------------------------------------------
sage: F.<a>=GF(4)
sage: m=matrix(2,[F(1),2,3,4])
sage: magma(m)
---------------------------------------------------------------------------
TypeError Traceback (most recent call
last)
/home/mariah/sage/sage-4.4.4.1-x86_64-Linux-core2-fc-trac9377/<ipython
console> in <module>()
/home/mariah/sage/sage-4.4.4.1-x86_64-Linux-core2-fc-
trac9377/local/lib/python2.6/site-packages/sage/interfaces/magma.pyc in
__call__(self, x, gens)
735 pass
736
--> 737 A = Expect.__call__(self, x)
738 if has_cache:
739 x._magma_cache[self] = A
1034 return self._coerce_from_special_method(x)
/home/mariah/sage/sage-4.4.4.1-x86_64-Linux-core2-fc-
trac9377/local/lib/python2.6/site-packages/sage/interfaces/expect.pyc in
__init__(self, parent, value, is_name, name)
1449 except (TypeError, KeyboardInterrupt, RuntimeError,
ValueError), x:
1450 self._session_number = -1
-> 1451 raise TypeError, x
1452 self._session_number = parent._session_number
1453
TypeError: Error evaluating Magma code.
IN:_sage_[7]:=_sage_[3]![_sage_[4]!(1),_sage_[4]!(0),_sage_[4]!(1),_sage_[4]!(0)];
OUT:
>>
_sage_[7]:=_sage_[3]![_sage_[4]!(1),_sage_[4]!(0),_sage_[4]!(1),_sage_[4]!(
^
Runtime error in '!': Cannot coerce sequence element 1 into the
coefficient ring
sage:
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/9377#comment:3>
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.