[sage-devel] Re: inverse of units

2016-07-06 Thread Kwankyu Lee
For inverting in the original parent ("internally"), the name "m.inverse_of_unit()" is used widely in Sage, e.g. in integer rings, polynomial rings, p-adic rings, etc. The name "m._invert_unit()" seems to be used only for matrices. I now understand the "unit" in the name for differentiating fro

Re: [sage-devel] Re: inverse of units

2016-07-06 Thread Vincent Delecroix
On 06/07/16 15:48, Kwankyu Lee wrote: How about "m.multiplicative_inverse()" or just "m.inverse()" which already works for matrices? Or those with a hyphen prepended, for "internal" use. `.inverse()` and `._invert_unit()` are different for matrices {{{ sage: m = matrix(2, [2,1,1,1]) sage: m._in

[sage-devel] Re: inverse of units

2016-07-06 Thread Kwankyu Lee
How about "m.multiplicative_inverse()" or just "m.inverse()" which already works for matrices? Or those with a hyphen prepended, for "internal" use. On the other hand, "inverse" or "invert" implies that m is(should be) a unit. Then "unit" in the name seems redundant... -- You received this me