Skip to content

Conversation

@mantepse
Copy link
Contributor

@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

@github-actions
Copy link

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

@mantepse
Copy link
Contributor 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
sagemathgh-37766: modules with basis/map coefficients
    
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
sagemathgh-37766: modules with basis/map coefficients
    
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