You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sagemathgh-37916: structure/coerce actions
We modify `ModuleAction` to prefer coercion of the base ring over
creating an action. More precisely, before this branch, we have
```
sage: G = PolynomialRing(QQ, "x")
sage: S = PolynomialRing(MatrixSpace(QQ, 2), "x")
sage: G.gen() * S.gen()
[x 0]
[0 x]*x
```
instead of
```
[1 0]
[0 1]*x^2
```
and
```
sage: G = PolynomialRing(QQ, "x")
sage: S = PolynomialRing(InfinitePolynomialRing(QQ, "a"), "x")
sage: G.gen() * S.an_element()
x*x
```
instead of
```
x^2
```
which is at least surprising.
In the end, this is needed to make sagemath#37033 work.
Authors: @tscrim and @mantepse.
URL: sagemath#37916
Reported by: Martin Rubey
Reviewer(s): Travis Scrimshaw
0 commit comments