Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug in change_ring for polynomials #28541

Closed
xcaruso opened this issue Sep 27, 2019 · 18 comments
Closed

bug in change_ring for polynomials #28541

xcaruso opened this issue Sep 27, 2019 · 18 comments

Comments

@xcaruso
Copy link
Contributor

xcaruso commented Sep 27, 2019

The method change_ring is not always working when we pass in a morphism.

sage: K = GF(5^2)
sage: S.<x> = K[]
sage: P = S.random_element()
sage: P.change_ring(K.frobenius_endomorphism())
Traceback (most recent call last):
...
TypeError: 

The current code is weird: it calls the method hom with a morphism as first argument (instead of the list the images of generators). Instead, I propose to fall back to map_coefficients.

CC: @roed314

Component: commutative algebra

Author: Xavier Caruso

Branch/Commit: e9840e4

Reviewer: Marc Mezzarobba, Markus Wageringel

Issue created by migration from https://trac.sagemath.org/ticket/28541

@xcaruso
Copy link
Contributor Author

xcaruso commented Sep 27, 2019

Branch: u/caruso/change_ring

@xcaruso
Copy link
Contributor Author

xcaruso commented Sep 27, 2019

Author: Xavier Caruso

@xcaruso
Copy link
Contributor Author

xcaruso commented Sep 27, 2019

Changed branch from u/caruso/change_ring to none

@xcaruso

This comment has been minimized.

@xcaruso
Copy link
Contributor Author

xcaruso commented Sep 27, 2019

Commit: 2ab843c

@xcaruso
Copy link
Contributor Author

xcaruso commented Sep 27, 2019

Branch: u/caruso/change_ring

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Sep 27, 2019

Changed commit from 2ab843c to c615bb6

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Sep 27, 2019

Branch pushed to git repo; I updated commit sha1. New commits:

c615bb6fallback to map_coefficients

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Sep 29, 2019

Branch pushed to git repo; I updated commit sha1. New commits:

fe1d9daadd doctest

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Sep 29, 2019

Changed commit from c615bb6 to fe1d9da

@mezzarobba
Copy link
Member

Reviewer: Marc Mezzarobba

@mezzarobba
Copy link
Member

comment:6

lgtm!

@vbraun
Copy link
Member

vbraun commented Oct 5, 2019

comment:7

Merge conflict

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Oct 6, 2019

Changed commit from fe1d9da to e9840e4

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Oct 6, 2019

Branch pushed to git repo; I updated commit sha1. New commits:

e9840e4Merge branch 'u/caruso/change_ring' of git://trac.sagemath.org/sage into change_ring

@mwageringel
Copy link

Changed reviewer from Marc Mezzarobba to Marc Mezzarobba, Markus Wageringel

@mwageringel
Copy link

comment:10

This looks good to me. The merge has not changed anything, so I am setting this to positive.

@vbraun
Copy link
Member

vbraun commented Dec 4, 2019

Changed branch from u/caruso/change_ring to e9840e4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants