-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c2b1f67
commit 34a3b49
Showing
2 changed files
with
115 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,26 @@ | ||
from flint.flint_base.flint_base cimport flint_poly | ||
|
||
from flint.flintlib.nmod cimport nmod_t | ||
from flint.flintlib.nmod_poly cimport nmod_poly_t | ||
from flint.flintlib.flint cimport mp_limb_t | ||
|
||
from flint.flint_base.flint_base cimport flint_poly | ||
|
||
from flint.types.nmod cimport nmod_ctx | ||
|
||
|
||
cdef class nmod_poly_ctx: | ||
cdef nmod_ctx ctx | ||
cdef nmod_t mod | ||
cdef bint _is_prime | ||
|
||
cdef nmod_poly_set_list(self, nmod_poly_t poly, list val) | ||
cdef int any_as_nmod(self, mp_limb_t * val, obj) except -1 | ||
cdef any_as_nmod_poly(self, obj) | ||
|
||
|
||
cdef class nmod_poly(flint_poly): | ||
cdef nmod_poly_t val | ||
cdef nmod_poly_ctx ctx | ||
|
||
cpdef long length(self) | ||
cpdef long degree(self) | ||
cpdef mp_limb_t modulus(self) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters