On Sat, Aug 15, 2015 at 3:00 AM, Vincent Delecroix <20100.delecr...@gmail.com> wrote: > Hello, > > As mentioned by Søren on ask [1] the subs method of matrices behave > differently than the subs method on coefficients > > sage: R.<x> = PolynomialRing(ZZ) > sage: m = matrix(R, [[x]]) > > sage: x.subs(3).parent() # parent *does* change > Integer Ring > > sage: m.subs(3).parent() # parent *does not* change > Full MatrixSpace of 1 by 1 dense matrices over > Univariate Polynomial Ring in x over Integer Ring > > Shouldn't the subs method on matrices simply be > > return matrix([a.subs(*args, **kwds) for a in self.list()]) > > instead of keeping the base ring?
Sounds like a good idea to me. David > > Vincent > > [1] http://ask.sagemath.org/question/28844 > > -- > 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. -- 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.