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 random methods compatible with compilation and Opposite #1083

Open
zickgraf opened this issue Oct 6, 2022 · 0 comments
Open

Make random methods compatible with compilation and Opposite #1083

zickgraf opened this issue Oct 6, 2022 · 0 comments

Comments

@zickgraf
Copy link
Member

zickgraf commented Oct 6, 2022

Currently, random methods are not compilable because they might return fail and the compiler skips such operations as a safety measure. Additionally, the list versions cannot be installed for the opposite category because the lists might contain information about source and/or range which would have to be swapped.

Possible solutions by looking at the implementation in #1079:

  1. Do not allow to return fail but simply return some default object or morphism or an error if the input integer or list is not valid.
  2. Make RandomMorphismByList get three lists, one for the source, one for the range, and one for the morphism datum (and make RandomMorphismByListWithFixedSource/Range get two lists).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant