-
Notifications
You must be signed in to change notification settings - Fork 32
/
Copy pathpyflint.pyx
63 lines (49 loc) · 1.32 KB
/
pyflint.pyx
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
"""
Python wrapper for FLINT and Arb.
"""
cimport flint
cimport libc.stdlib
cimport cython
from flint.flint_base.flint_context cimport thectx
cdef flint_rand_t global_random_state
flint_randinit(global_random_state)
cdef extern from "Python.h":
int PyObject_TypeCheck(object, PyTypeObject*)
int PyInt_Check(PyObject *o)
PyObject* PyInt_FromLong(long ival)
int PyLong_Check(PyObject *o)
long PyInt_AS_LONG(PyObject *io)
double PyFloat_AS_DOUBLE(PyObject *io)
Py_ssize_t PyList_GET_SIZE(PyObject *list)
long PyLong_AsLongAndOverflow(PyObject *pylong, int *overflow)
int PyComplex_Check(PyObject *o)
double PyComplex_RealAsDouble(PyObject *op)
double PyComplex_ImagAsDouble(PyObject *op)
DEF FMPZ_UNKNOWN = 0
DEF FMPZ_REF = 1
DEF FMPZ_TMP = 2
ctx = thectx
include "fmpz.pyx"
include "fmpz_poly.pyx"
include "fmpz_mpoly.pyx"
include "fmpz_mat.pyx"
include "fmpz_series.pyx"
include "fmpq.pyx"
include "fmpq_poly.pyx"
include "fmpq_mat.pyx"
include "fmpq_series.pyx"
include "nmod.pyx"
include "nmod_poly.pyx"
include "nmod_mat.pyx"
include "nmod_series.pyx"
include "arf.pyx"
include "arb.pyx"
include "arb_poly.pyx"
include "arb_mat.pyx"
include "arb_series.pyx"
include "acb.pyx"
include "acb_poly.pyx"
include "acb_mat.pyx"
include "acb_series.pyx"
include "functions.pyx"
include "dirichlet.pyx"