On Fri, Jun 19, 2009 at 1:55 PM, Harald Schilly<[email protected]> wrote: > > On Jun 19, 12:50 pm, Pierre <[email protected]> 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.
If A is a numpy array, you can do "matrix(A)" to get a Sage matrix. William --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
