[sage-devel] Re: diagonal_matrix and numpy arrays

2011-01-12 Thread Rob Beezer
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

[sage-devel] Re: diagonal_matrix and numpy arrays

2011-01-12 Thread Felix Lawrence
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(),