On Tue, Feb 5, 2008 at 8:41 AM, William Stein <[EMAIL PROTECTED]> wrote:
> On Feb 5, 2008 7:58 AM, VictorMiller <[EMAIL PROTECTED]> wrote:
>  >
>  > I tried the following:
>  >
>  > a = random_matrix(ZZ,10,10)
>  > m = magma(a)
>  > s = m.sage()
>
>  Most conversions from Magma back to Sage that one might imagine
>  doing are not implemented.   This is because very very few of the Sage
>  developers use Magma, except for benchmarking, where only the
>  other conversion direction is needed.  Complain to Allan K. about this :-)
>
>

FYI, as a little test I've implemented the above so it works, and
this will be in Sage soon:

   http://trac.sagemath.org/sage_trac/ticket/2169

This was mainly a test to think through the architecture of how
this might best work.

        Matrices:
            sage: a = matrix(ZZ,3,3,[1..9])
            sage: m = magma(a)                        # optional
            sage: b = m.sage(); b                     # optional
            [1 2 3]
            [4 5 6]
            [7 8 9]
            sage: b == a                             # optional
            True

        A nonsquare matrix:
            sage: a = matrix(ZZ,2,3,[1..6])
            sage: m = magma(a)                       # optional
            sage: m.sage()                           # optional
            [1 2 3]
            [4 5 6]


William

--~--~---------~--~----~------------~-------~--~----~
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-forum
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to