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
ModuleMorphismByLinearity doesn't coerce input arguments #13833
Comments
Hi Christian! Replying to @cnassau:
Well, a linear map from V to W should really know that f(V.zero()) == In any cases, the ``automatic coercion to self.domain()'' feature will Cheers! |
comment:2
Replying to @nthiery:
My background is this: I'm working on an optional package for Steenrod algebra cohomology, and I have just implemented kernels of maps between modules. Now I would like to have f(kernel(f).an_element()) == 0 But this fails, because Well, I can live with this deficiency in my code because I'm just patching Sage in my startup file. But it would be simple to fix this in Sage by changing the
into a cast
Whether it's worth doing this now depends on the timeframe of the other patch that you mentioned. Cheers, Christian |
comment:3
Replying to @cnassau:
Nice! We will need such tools as well. Is the domain of f graded or finite dimensional?
I see. It would be natural to go from f.kernel() to f.codomain() using
Which is not so bad. Actually, the is_zero test is better since it
Which, honestly, I have no idea about ... sorry. I have a patch for Cheers, |
comment:4
Replying to @nthiery:
The modules are all tri-graded: they have two internal degrees (because the Steenrod algebra is bigraded) and one homological degree (because I'm really trying to implement differential graded modules). The framework for multi-graded objects is of my own making and still quite experimental; I once had a look at some grading patches in the combinat queue [years ago] but decided that I probably needed something different. Of course, whether my own approach leads to something workable is not clear yet... I hope to arrive at something publishable at some point in the next year.
My kernels do follow the Anyway, I can patch Sage in my package, so this is not an urgent problem for me. Cheers, Christian |
A linear map really should know about
f(0)==0
:Here
ModuleMorphismByLinearity.__call__
should only complain if it cannot coerce its input intoself.domain()
Component: categories
Issue created by migration from https://trac.sagemath.org/ticket/13833
The text was updated successfully, but these errors were encountered: