Yes, I like that - I need to learn about "lift" and "parent".

-A.

On Dec 12, 9:44 pm, daveloeffler <dave.loeff...@gmail.com> wrote:
> 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 <amc...@gmail.com> 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 sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to