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
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
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