On Sep 4, 1:54 pm, Jason Grout <[EMAIL PROTECTED]> wrote: > Inhttp://trac.sagemath.org/sage_trac/ticket/3704, the diagonal matrix > constructor is modified (and simplified/enhanced) to let someone do: > > sage: diagonal_matrix(1,2,3) > [1 0 0] > [0 2 0] > [0 0 3] > > to get a diagonal matrix with diagonal entries 1, 2, 3.
I don't like this syntax. I would prefer diagonal_matrix([1,2,3]); this makes the syntax more similar to matrix(). None of the other similar constructors (like Sage's Sequence() or vector(), or Python's list()) take their arguments this way, either. Carl --~--~---------~--~----~------------~-------~--~----~ 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-devel URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---
