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

Allow custom degree in random_element of polynomial quotient ring #37268

Merged
merged 2 commits into from
Feb 25, 2024

Commits on Feb 16, 2024

  1. Allow custom degree in random_element of polynomial quotient ring

    Currently, the `random_element` function of the polynomial quotient ring passes
    all arguments through to the base ring. However, the random_element function
    itself passes a default degree to the base ring, based on the degree of the
    quotient ring. So, overwriting the degree in kwargs gives a TypeError.
    Therefore, detect the `degree` argument manually, such that the user can
    overrride the default degree.
    aimileus committed Feb 16, 2024
    Configuration menu
    Copy the full SHA
    3ff46e3 View commit details
    Browse the repository at this point in the history
  2. Fix typo

    aimileus committed Feb 16, 2024
    Configuration menu
    Copy the full SHA
    0e24c1f View commit details
    Browse the repository at this point in the history