Hi! On Sep 5, 7:32 pm, Kwankyu <ekwan...@gmail.com> wrote: > How about this syntax? > > > sage: A = random_matrix(ZZ,3,3) > > sage: TermOrder("weight",matrix=A) > > following the Magma syntax for weight ordering. I certainly prefer the > term weight ordering than matrix ordering.
I don't know what is more common. I learned it under the name "matrix", not "weight". By "weight", I would understand that one just gets a degree vector for the ring generators (as in "weighted homogeneous"), for example a "weighted degree lexicographic order". Anyway, it seems redundant to give both a string ("weight" or "matrix") *and* a matrix. So, this syntax is shorter and clearer: sage: TermOrder(A) Note that when we talk about the input syntax, we would certainly not be able to solve the problem with the __add__ method that I mentioned in a previous post. I think that problem can only be solved by improving the internal representation of the order. Cheers, Simon --~--~---------~--~----~------------~-------~--~----~ To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---