Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sagemathgh-38721: Type of Z/nZ NTL polynomial evaluation should be sc…
…alar <!-- ^ 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 sagemath#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 sagemath#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: sagemath#38721 Reported by: Kyle Hofmann Reviewer(s): Kwankyu Lee
- Loading branch information