Re: [sage-devel] matrix.subs()

2015-08-17 Thread Vincent Delecroix
On 17/08/15 09:27, David Roe wrote: 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. = PolynomialRing(ZZ) sage: m = ma

Re: [sage-devel] matrix.subs()

2015-08-17 Thread David Roe
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. = PolynomialRing(ZZ) > sage: m = matrix(R, [[x]]) > > sage: x.

[sage-devel] matrix.subs()

2015-08-15 Thread Vincent Delecroix
Hello, As mentioned by Søren on ask [1] the subs method of matrices behave differently than the subs method on coefficients sage: R. = PolynomialRing(ZZ) sage: m = matrix(R, [[x]]) sage: x.subs(3).parent() # parent *does* change Integer Ring sage: m.subs(3).parent() # parent *doe