-
Notifications
You must be signed in to change notification settings - Fork 129
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
hom
should do some argument checking and provide better error messages
#4201
Comments
hom
not working for certain types of inputhom
not working for g//1
where g::MPolyRingElem
The object Edit: The error could be better though. |
I see, so is this a user error and using |
As usual the answer is complicated. For all the rings that Oscar introduces, |
Got it, I will keep that in mind going forward. Thanks for the clarification! |
Let me repurpose this issue as a feature request to some better argument checking in the application of a morphisms. The feedback of the people coming in touch with Oscar for the first time are quite valuable. Happy to hear suggestions on how to make things easier/clearer with respect to the issues encountered here. |
hom
not working for g//1
where g::MPolyRingElem
hom
should do some argument checking and provide better error messages
Is it possible to write some generic fall-back code that allows hom to be applied to the fraction field (as long as the denominator is a unit)? |
Sorry for the bad title. Found by @yuvraj-singh-math. If
g
is a polynomial,g//1
andg/1
produces two different types. This isn't problematic, as most functions do not distinguish between the resulting types, buthom
does:Code to reproduce the error:
(
QQ
above is not special, the error also occurs over a finite field or a rational function field)Error that is produced:
The text was updated successfully, but these errors were encountered: