| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| **fmpz_mod** -- integers mod n | ||
| =============================================================================== | ||
|
|
||
| .. autoclass :: flint.fmpz_mod_ctx | ||
| :members: | ||
| :inherited-members: | ||
| :undoc-members: | ||
|
|
||
| .. autoclass :: flint.fmpz_mod | ||
|
Comment thread
Copy link
Copy Markdown
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low QualityThe fmpz_mod_ctx class also needs to be documented here.
Sorry, something went wrong.
All reactions
|
||
| :members: | ||
| :inherited-members: | ||
| :undoc-members: | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| Expand Up | @@ -43,6 +43,7 @@ Scalar types | |
|
|
||
| fmpz.rst | ||
| fmpq.rst | ||
| fmpz_mod.rst | ||
| nmod.rst | ||
| arb.rst | ||
| acb.rst | ||
| Expand Down | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,45 @@ | ||
| from flint.flintlib.flint cimport ulong, slong | ||
| from flint.flintlib.fmpz cimport fmpz_t, fmpz_preinvn_struct | ||
| from flint.flintlib.nmod cimport nmod_t | ||
|
|
||
| # unimported types {'fmpz_mod_discrete_log_pohlig_hellman_t'} | ||
|
|
||
| cdef extern from "flint/fmpz_mod.h": | ||
| ctypedef struct fmpz_mod_ctx_struct: | ||
| fmpz_t n | ||
| nmod_t mod | ||
| ulong n_limbs[3] | ||
| ulong ninv_limbs[3] | ||
| fmpz_preinvn_struct * ninv_huge | ||
| ctypedef fmpz_mod_ctx_struct fmpz_mod_ctx_t[1] | ||
|
|
||
| # Parsed from here | ||
| void fmpz_mod_ctx_init(fmpz_mod_ctx_t ctx, const fmpz_t n) | ||
| void fmpz_mod_ctx_clear(fmpz_mod_ctx_t ctx) | ||
| void fmpz_mod_ctx_set_modulus(fmpz_mod_ctx_t ctx, const fmpz_t n) | ||
| void fmpz_mod_set_fmpz(fmpz_t a, const fmpz_t b, const fmpz_mod_ctx_t ctx) | ||
| int fmpz_mod_is_canonical(const fmpz_t a, const fmpz_mod_ctx_t ctx) | ||
| int fmpz_mod_is_one(const fmpz_t a, const fmpz_mod_ctx_t ctx) | ||
| void fmpz_mod_add(fmpz_t a, const fmpz_t b, const fmpz_t c, const fmpz_mod_ctx_t ctx) | ||
| void fmpz_mod_add_fmpz(fmpz_t a, const fmpz_t b, const fmpz_t c, const fmpz_mod_ctx_t ctx) | ||
| void fmpz_mod_add_ui(fmpz_t a, const fmpz_t b, ulong c, const fmpz_mod_ctx_t ctx) | ||
| void fmpz_mod_add_si(fmpz_t a, const fmpz_t b, slong c, const fmpz_mod_ctx_t ctx) | ||
| void fmpz_mod_sub(fmpz_t a, const fmpz_t b, const fmpz_t c, const fmpz_mod_ctx_t ctx) | ||
| void fmpz_mod_sub_fmpz(fmpz_t a, const fmpz_t b, const fmpz_t c, const fmpz_mod_ctx_t ctx) | ||
| void fmpz_mod_sub_ui(fmpz_t a, const fmpz_t b, ulong c, const fmpz_mod_ctx_t ctx) | ||
| void fmpz_mod_sub_si(fmpz_t a, const fmpz_t b, slong c, const fmpz_mod_ctx_t ctx) | ||
| void fmpz_mod_fmpz_sub(fmpz_t a, const fmpz_t b, const fmpz_t c, const fmpz_mod_ctx_t ctx) | ||
| void fmpz_mod_ui_sub(fmpz_t a, ulong b, const fmpz_t c, const fmpz_mod_ctx_t ctx) | ||
| void fmpz_mod_si_sub(fmpz_t a, slong b, const fmpz_t c, const fmpz_mod_ctx_t ctx) | ||
| void fmpz_mod_neg(fmpz_t a, const fmpz_t b, const fmpz_mod_ctx_t ctx) | ||
| void fmpz_mod_mul(fmpz_t a, const fmpz_t b, const fmpz_t c, const fmpz_mod_ctx_t ctx) | ||
| void fmpz_mod_inv(fmpz_t a, const fmpz_t b, const fmpz_mod_ctx_t ctx) | ||
| int fmpz_mod_divides(fmpz_t a, const fmpz_t b, const fmpz_t c, const fmpz_mod_ctx_t ctx) | ||
| void fmpz_mod_pow_ui(fmpz_t a, const fmpz_t b, ulong e, const fmpz_mod_ctx_t ctx) | ||
| int fmpz_mod_pow_fmpz(fmpz_t a, const fmpz_t b, const fmpz_t e, const fmpz_mod_ctx_t ctx) | ||
| # void fmpz_mod_discrete_log_pohlig_hellman_init(fmpz_mod_discrete_log_pohlig_hellman_t L) | ||
| # void fmpz_mod_discrete_log_pohlig_hellman_clear(fmpz_mod_discrete_log_pohlig_hellman_t L) | ||
| # double fmpz_mod_discrete_log_pohlig_hellman_precompute_prime(fmpz_mod_discrete_log_pohlig_hellman_t L, const fmpz_t p) | ||
| # const fmpz_struct * fmpz_mod_discrete_log_pohlig_hellman_primitive_root(const fmpz_mod_discrete_log_pohlig_hellman_t L) | ||
| # void fmpz_mod_discrete_log_pohlig_hellman_run(fmpz_t x, const fmpz_mod_discrete_log_pohlig_hellman_t L, const fmpz_t y) | ||
| int fmpz_next_smooth_prime(fmpz_t a, const fmpz_t b) |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| from flint.flint_base.flint_base cimport flint_scalar | ||
| from flint.flintlib.fmpz cimport fmpz_t | ||
| from flint.flintlib.fmpz_mod cimport fmpz_mod_ctx_t | ||
|
|
||
|
|
||
| cdef class fmpz_mod_ctx: | ||
| cdef fmpz_mod_ctx_t val | ||
|
|
||
| cdef class fmpz_mod(flint_scalar): | ||
| cdef fmpz_mod_ctx ctx | ||
| cdef fmpz_t val | ||
|
|
||
| cdef any_as_fmpz_mod(self, obj) | ||
|
|
| Back | FazBrowse Home | New Git URL |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low QualityThis should say fmpz_mod.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low QualityThank you!!
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.