-
-
Notifications
You must be signed in to change notification settings - Fork 405
/
pari_instance.pxd
36 lines (32 loc) · 1.65 KB
/
pari_instance.pxd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
include 'decl.pxi'
include 'sage/libs/flint/fmpz.pxi'
include 'sage/libs/flint/fmpz_mat.pxi'
cimport sage.structure.parent_base
cimport cython
from sage.libs.pari.gen cimport gen
cpdef long prec_bits_to_words(unsigned long prec_in_bits)
@cython.final
cdef class PariInstance(sage.structure.parent_base.ParentWithBase):
cdef long _real_precision
cdef gen PARI_ZERO, PARI_ONE, PARI_TWO
cdef inline gen new_gen(self, GEN x)
cdef inline gen new_gen_noclear(self, GEN x)
cdef gen new_gen_from_mpz_t(self, mpz_t value)
cdef inline GEN _new_GEN_from_mpz_t(self, mpz_t value)
cdef gen new_gen_from_mpq_t(self, mpq_t value)
cdef inline GEN _new_GEN_from_mpq_t(self, mpq_t value)
cdef gen new_gen_from_int(self, int value)
cdef gen new_t_POL_from_int_star(self, int *vals, int length, long varnum)
cdef gen new_gen_from_padic(self, long ordp, long relprec, mpz_t prime, mpz_t p_pow, mpz_t unit)
cdef inline void clear_stack(self)
cdef gen double_to_gen_c(self, double)
cdef GEN double_to_GEN(self, double)
cdef GEN deepcopy_to_python_heap(self, GEN x, pari_sp* address)
cdef gen new_ref(self, GEN g, gen parent)
cdef gen _empty_vector(self, long n)
cdef long get_var(self, v)
cdef GEN _new_GEN_from_fmpz_mat_t(self, fmpz_mat_t B, Py_ssize_t nr, Py_ssize_t nc)
cdef GEN _new_GEN_from_fmpz_mat_t_rotate90(self, fmpz_mat_t B, Py_ssize_t nr, Py_ssize_t nc)
cdef gen integer_matrix(self, fmpz_mat_t B, Py_ssize_t nr, Py_ssize_t nc, bint permute_for_hnf)
cdef GEN _new_GEN_from_mpq_t_matrix(self, mpq_t** B, Py_ssize_t nr, Py_ssize_t nc)
cdef gen rational_matrix(self, mpq_t** B, Py_ssize_t nr, Py_ssize_t nc)