thanks for this. You might be amused by what my colleague said about SAGE, when we were talking about whether or not using numpy:
"SAGE is like the British train system: you have to worry about which company to use." Coming from a french person, this is actually extremely negative. But i thought it would give an idea of an opinion that's around, and feedback is always good, right ? pierre On 19 juin, 15:59, Jason Grout <jason-s...@creativetrax.com> wrote: > Harald Schilly wrote: > > On Jun 19, 12:50 pm, Pierre <pierre.guil...@gmail.com> wrote: > >> i know numpy does it, so is it there for sage matrices also ? > > > i don't think so, how is the numpy syntax? I think this should be an > > enhancement to Sage's "sage.matrix.constructor.diagonal_matrix" > > function, introducing an "offset" parameter. > > +1. That would make it more consistent with matlab too: diag (diagonal, > offset). The same syntax works for numpy. > > I think William's solution is the easiest for now, unless you just want > to write the short function to do it. > > If someone wants to modify diagonal_matrix, and wants a little more > ambitious project, they might work on #5110, which is basically pointing > to a rewrite of diagonal_matrix at #3704 that languished and was never > applied. > > Jason --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---