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
gh-38721: Type of Z/nZ NTL polynomial evaluation should be scalar
<!-- ^ Please provide a concise and informative title. -->
<!-- ^ Don't put issue numbers in the title, do this in the PR
description below. -->
<!-- ^ For example, instead of "Fixes#12345" use "Introduce new method
to calculate 1 + 2". -->
<!-- v Describe your changes below in detail. -->
<!-- v Why is this change required? What problem does it solve? -->
<!-- v If this PR resolves an open issue, please link to it here. For
example, "Fixes#12345". -->
When a polynomial over Z/n implemented in NTL is evaluated, the result
should be in Z/n. Currently it's not; it's still an element of the
polynomial ring. Example:
```
sage: R.<x> = PolynomialRing(Zmod(4), 'x', implementation='NTL')
sage: x.subs(1).parent()
Univariate Polynomial Ring in x over Ring of integers modulo 4 (using
NTL)
```
This patch fixes this behavior.
URL: #38721
Reported by: Kyle Hofmann
Reviewer(s): Kwankyu Lee
0 commit comments