You can also do the following:

M = random_matrix(IntegerModRing(10), 3, 3)
Madj = M.parent() (M.lift().adjoint())

In other words, we lift M to a matrix over ZZ, compute its adjoint and
reduce it mod 10 again (by "coercing it into the parent of M" in sage-
speak).

David

On Dec 12, 12:20 am, Alasdair <[email protected]> wrote:
> Actually, this seems to work (using Maxima):
>
> M=random_matrix(IntegerModRing(10),3,3)
> MM=maxima(M)
> MA=matrix(IntegerModRing(10),MM.adjoint())
>
> However, MA refuses to be typeset properly in the notebook - I
> consistently get LaTeX code, rather than a nicely typeset matrix.
>
> It would be nice to have a built in adjoint...
>
> Thanks,
> Alasdair
--~--~---------~--~----~------------~-------~--~----~
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-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to