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
See #10683, where the following less-than-helpful message was discovered.
sage: k.<b> = FiniteField(9); k
Finite Field in b of size 3^2
sage: vector([1,i]).dot_product(vector(k,[1,b]))
---------------------------------------------------------
ArithmeticError:
Of course you can't multiply elements of the symbolic ring and this finite field. But if this happened buried deep in some other code, it could take a long time to track down.
This actually happens when you just multiply as well, unsurprisingly, so that's where it would have to be caught.
This is fixed by Burcin's patch in #13739. I just accidentally rebased it without noticing that it had a dependency, but I think the dependency is just for the line or two of context in the patch.
Anyway, I added the test case from this ticket, so when #13739 gets applied we can close this, too.
See #10683, where the following less-than-helpful message was discovered.
Of course you can't multiply elements of the symbolic ring and this finite field. But if this happened buried deep in some other code, it could take a long time to track down.
This actually happens when you just multiply as well, unsurprisingly, so that's where it would have to be caught.
CC: @rbeezer @orlitzky
Component: basic arithmetic
Keywords: multiply, arithmetic, incompatible
Reviewer: Michael Orlitzky
Issue created by migration from https://trac.sagemath.org/ticket/10960
The text was updated successfully, but these errors were encountered: