-
-
Notifications
You must be signed in to change notification settings - Fork 528
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 in modules_with_basis safer or more general #18264
Comments
comment:3
Doing this I noticed that |
Commit: |
Author: Martin Rubey |
comment:7
Hi Martin! Thanks for taking action; this is looking good! Now that I am reading actual code: a usual idiom to check that a Maybe the option shall be named Note by the way that coercing would fail in Mike's original use case,
If we go for the coerce way, then the simplest would be to pass this It's getting a bit bigger of a change than what was planned for Cheers, |
comment:9
Replying to @nthiery:
I agree and will do that as soon as my sage works again (see sage-devel thread...) |
comment:10
Hi there! I was just about to do what Nicolas suggest -- adding an optional argument
If you reassure me, I'll do it. I'm just not 100% sure myself. |
comment:11
Replying to @mantepse:
Yeah, I agree; it's not supper consistent. Yet
I see your point. We should be able to find some wording that makes it
From my perspective you can proceed! Feedback anyone else? Cheers, |
comment:12
Done (currently testing). A question: in general, what is the requirement on the coefficients (morally, not enforced...)?
1: In the internal representation, the coefficients are supposed to be I indeed would not be surprised if there were quite a few places in |
comment:13
As it turns out, I get several failures when I insist on trying to coerce to the base ring! (I pushed the nonworking branch, to get feedback.) For example:
The test which fails looks as follows:
The expected output is Martin |
comment:14
Replying to @mantepse:
Ok. Can you post here the test summary with the list of failing files,
If some intermediate calculations involve rational coefficients, then Darij, Mike, ..., what do you think? Do you have a quick way to improve NCSF's |
Reviewer: Nicolas M. Thiéry |
comment:16
I think it's only
|
comment:17
Out of curiosity, I modified
|
comment:18
Darij put some effort into making sure that I am concerned about the conflicts with macdonald.py. I want to check those out carefully because we are in the process of fine tuning that code in #18194 IMO: I think that if you want to allow factor coefficients then the answer to your question is 3) you shouldn't expect anything... |
comment:19
Can you tell me how to exactly reproduce the failing doctests in ncsf.py? I don't have time for the rest, but at least I should see what's going wrong in my code. The test_psi(n) tests, though, have every right to fail. They should be fixed by replacing |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:21
OOps, I thought I pushed, but I actually only pushed just now. Darij, if you pull the current branch, you'll see the failures. |
comment:22
Replying to @zabrocki:
I don't think so. A neat trick we should copy from FriCAS is to have a constructor So far, however, I do not know how to create a ring in sage... |
comment:23
I investigated the failure in
The |
Changed branch from u/mantepse/make_map_coefficients_in_modules_with_basis_safer_or_more_general to public/ticket/18264 |
comment:25
I've fixed the doctests in two files. The doc failure in macdonald.py seems a real issue. Mike? (Anyone who works on this needs the newest develop version, 6.7.beta3, since the Macdonald functions have undergone a major change in this version.) Also the error in free_module.py itself seems to suggest that some optional parameters are being ignored... |
comment:26
Replying to @darijgr:
Thank you!
Yes, as I mentioned above (I hope), I "manually" set |
comment:27
Oh! Does this mean I've built on top of an experimental branch? Sorry! |
comment:28
I'm sorry, I did not warn explicitely enough. To get a production branch, simply remove the line |
comment:29
The doctest fixes are now in #19771. |
comment:30
Another case where the implementation of
|
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
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
We would love to be able to, for example, present a symmetric function with factored coefficients. But:
The result is not against the specification, because
map_coefficients
requires an endofunction.There are two issues:
1.) we possibly want to be warned when supplying
map_coefficients
with something that is not an endofunction. This might be achieved by adding an optional argumentcheck
with defaultTrue
.2.) we want some way to factor the coefficients. Nicolas proposed to make something like
or
work.
Note that the
Polynomial
class contains something similar, namely:However, there might be another tiny problem: it seems that currently it is not possible to make factored integers into a commutative ring. This should possibly be a separate ticket.
CC: @zabrocki @darijgr @sagetrac-sage-combinat @hivert
Component: algebra
Keywords: map_coefficients, modules_with_basis, base_ring, check arguments
Author: Martin Rubey
Branch/Commit: public/ticket/18264 @
d0d80e7
Reviewer: Nicolas M. Thiéry
Issue created by migration from https://trac.sagemath.org/ticket/18264
The text was updated successfully, but these errors were encountered: