A patch at:
http://trac.sagemath.org/sage_trac/ticket/10604
adds NumPy arrays as input to the diagonal_matrix() constructor.
Rob
--
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
Should conversion from numpy arrays/matrices to lists and sage vectors/
matrices be implemented by a .sage() method on the numpy array/
matrix? This is more consistent with the behaviour interface objects.
diagonal_matrix(), matrix(), etc could then outsource the conversion
steps to .sage(),