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

make map_coefficients more general #37271

Closed

Conversation

mantepse
Copy link
Collaborator

@mantepse mantepse commented Feb 9, 2024

The internal documentation of categories/modules_with_basis.py mentions

        # TODO: Define the appropriate element methods here (instead of in
        # subclasses).  These methods should be consistent with those on
        # polynomials.

In line with this, we allow a new keyword new_base_ring argument for map_coefficients, and allow maps that are not necessarily endofunctions.

In particular, this fixes #18264. In the end, this is needed for #37033, where we need a generic way to retract a module element to a smaller coefficient ring, if possible.

Unfortunately, I am unable to find the discussion on sage-devel anymore. The current PR is certainly not optimal.

Dependencies: #37220

Copy link

Documentation preview for this PR (built with commit 28a8d17; changes) is ready! 🎉

@mantepse
Copy link
Collaborator Author

mantepse commented Apr 8, 2024

Superseded by #37766

@mantepse mantepse closed this Apr 8, 2024
vbraun pushed a commit to vbraun/sage that referenced this pull request Apr 20, 2024
    
This is a replacement for sagemath#37271, without dependency on the construction
functor for symmetric functions.

Fixes sagemath#18264
    
URL: sagemath#37766
Reported by: Martin Rubey
Reviewer(s): Martin Rubey, Matthias Köppe, Travis Scrimshaw
vbraun pushed a commit to vbraun/sage that referenced this pull request Apr 25, 2024
    
This is a replacement for sagemath#37271, without dependency on the construction
functor for symmetric functions.

Fixes sagemath#18264
    
URL: sagemath#37766
Reported by: Martin Rubey
Reviewer(s): Martin Rubey, Matthias Köppe, Travis Scrimshaw
@mantepse mantepse deleted the modules_with_basis/map_coefficients branch May 8, 2024 12:27
@mantepse mantepse restored the modules_with_basis/map_coefficients branch May 8, 2024 12:27
@mantepse mantepse deleted the modules_with_basis/map_coefficients branch May 8, 2024 12:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

make map_coefficients in modules_with_basis safer or more general
1 participant