Skip to content

Commit ef30ebf

Browse files
committed
feat: add most gr scalar operations and fmpzi
1 parent f8f0ffb commit ef30ebf

File tree

5 files changed

+673
-97
lines changed

5 files changed

+673
-97
lines changed

src/flint/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from .pyflint import *
22

3-
from .types.gr import gr_ctx, gr_fmpz_ctx, gr_fmpq_ctx
3+
from .types.gr import gr_ctx, gr_fmpz_ctx, gr_fmpq_ctx, gr_fmpzi_ctx
44

55
from .types.fmpz import *
66
from .types.fmpz_poly import *

src/flint/flintlib/types/gr.pxd

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,10 @@ from flint.flintlib.types.flint cimport (
88

99
cdef extern from "flint/gr.h":
1010

11-
cdef enum truth_t_enum:
12-
T_TRUE
13-
T_FALSE
14-
T_UNKNOWN
15-
16-
ctypedef truth_t_enum truth_t
11+
ctypedef int truth_t
12+
cdef int T_TRUE
13+
cdef int T_FALSE
14+
cdef int T_UNKNOWN
1715

1816
# Macros
1917
cdef int GR_SUCCESS

0 commit comments

Comments
 (0)