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

Directly initialize fmpz from a python int. #64

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Commits on Aug 20, 2023

  1. Directly initialize fmpz from a python int.

    Mimics the code from gmpy2 and so depends on undocumented internals of
    PyLong.
    deinst committed Aug 20, 2023
    Configuration menu
    Copy the full SHA
    e87b87d View commit details
    Browse the repository at this point in the history

Commits on Aug 21, 2023

  1. Changed fmpz_set_pylong to use _fmpz_promote and demote

    No longer allocating a separate fmpz object so should be faster.
    deinst committed Aug 21, 2023
    Configuration menu
    Copy the full SHA
    c02a4c6 View commit details
    Browse the repository at this point in the history
  2. change fmpz_get_intlong to use mpz_export

    This uses the method from sagemath which is a bit simpler than that of
    gmpy2.  It is missing a normalization step that is in gmpy2.  I guess
    that the normalization step is not necessary.
    deinst committed Aug 21, 2023
    Configuration menu
    Copy the full SHA
    ec810d5 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    64a72da View commit details
    Browse the repository at this point in the history

Commits on Aug 24, 2023

  1. Sped up fmpz_set_pylong in the 2**30 to 2**40 range

    I'm not entirely sure what is going on, but this seems to be the fastest
    set of methods
    deinst committed Aug 24, 2023
    Configuration menu
    Copy the full SHA
    6cf0235 View commit details
    Browse the repository at this point in the history

Commits on Sep 23, 2023

  1. Merge branch 'master' into initialize_fmpz

    Not the most straightforward of merges, light editing of flintlib/flint.pxd and
    flintlib/fmpz.pxd was needed.
    deinst committed Sep 23, 2023
    Configuration menu
    Copy the full SHA
    64456af View commit details
    Browse the repository at this point in the history