> The problem with matrix(n,n,c) is that it's actually coming from matrix > rings! Scalars should probably coerce in there to make A - 1 work. It's > something supported on a level below. > > I don't understand this. I just traced matrix(2,2,x) and this is handled by _matrix_constructor. I don't see why matrix(2,2,x) needs to return a diagonal matrix. Could you please explain what you mean with "matrix(n,n,c) is coming from matrix rings"?
Thanks, Martin -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at http://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.