On Thu, Jun 4, 2009 at 4:36 PM, Jason Grout <jason-s...@creativetrax.com> wrote: > > It seems confusing and inconsisent that for a matrix m, m.change_ring(R) > returns m when R==self.base_ring(), but otherwise returns a copy of m > (coerced to the right ring). > > If you always just do new_mat = m.change_ring(R), you don't know if > you're working with a copy of m or a new version of m, i.e., you don't > know if it's safe to then do new_mat[0,0]=1. > > Should this be changed so that m.change_ring(R) always returns a copy?
Yes, I think so. Carl --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to sage-devel-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---