This repository has been archived by the owner on Jan 30, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove compile time dependency of Integer and Rational on cypari2
- Loading branch information
Jonathan Kliem
committed
Aug 28, 2021
1 parent
08084b3
commit 9986723
Showing
5 changed files
with
221 additions
and
93 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,6 +1,13 @@ | ||
from cypari2.gen cimport Gen | ||
from sage.rings.integer cimport Integer | ||
from sage.rings.rational cimport Rational | ||
|
||
cpdef gen_to_sage(Gen z, locals=*) | ||
|
||
cpdef set_integer_from_gen(Integer self, Gen x) | ||
cpdef Gen new_gen_from_integer(Integer self) | ||
cpdef set_rational_from_gen(Rational self, Gen x) | ||
cpdef Gen new_gen_from_rational(Rational self) | ||
|
||
cpdef pari_is_prime(Integer p) | ||
cpdef pari_is_prime_power(Integer q, bint get_data) |
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
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
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
Oops, something went wrong.