File tree Expand file tree Collapse file tree 2 files changed +43
-18
lines changed Expand file tree Collapse file tree 2 files changed +43
-18
lines changed Original file line number Diff line number Diff line change @@ -207,25 +207,25 @@ cdef class _gr_fmpzi_ctx(gr_scalar_ctx):
207207 cdef _gr_fmpzi_ctx _new()
208208
209209
210- @cython.no_gc
211- cdef class _gr_fmpz_poly_ctx(gr_poly_ctx):
210+ # @cython.no_gc
211+ # cdef class _gr_fmpz_poly_ctx(gr_poly_ctx):
212+ #
213+ # @staticmethod
214+ # cdef _gr_fmpz_poly_ctx _new()
212215
213- @staticmethod
214- cdef _gr_fmpz_poly_ctx _new()
215216
217+ # @cython.no_gc
218+ # cdef class _gr_fmpq_poly_ctx(gr_poly_ctx):
219+ #
220+ # @staticmethod
221+ # cdef _gr_fmpq_poly_ctx _new()
216222
217- @cython.no_gc
218- cdef class _gr_fmpq_poly_ctx(gr_poly_ctx):
219-
220- @staticmethod
221- cdef _gr_fmpq_poly_ctx _new()
222223
223-
224- @cython.no_gc
225- cdef class _gr_gr_poly_ctx(gr_poly_ctx):
226-
227- @staticmethod
228- cdef _gr_gr_poly_ctx _new()
224+ # @cython.no_gc
225+ # cdef class _gr_gr_poly_ctx(gr_poly_ctx):
226+ #
227+ # @staticmethod
228+ # cdef _gr_gr_poly_ctx _new()
229229
230230
231231# The global contexts for use in cython code:
Original file line number Diff line number Diff line change @@ -215,13 +215,38 @@ cdef class gr_ctx(flint_ctx):
215215 return res
216216
217217
218+ cdef class gr_scalar_ctx(gr_ctx ):
219+ pass
220+
221+
222+ cdef class gr_poly_ctx(gr_ctx):
223+ pass
224+
225+
226+ cdef class gr_mpoly_ctx(gr_ctx):
227+ pass
228+
229+
230+ cdef class gr_matrix_domain_ctx(gr_ctx):
231+ pass
232+
233+
234+ cdef class gr_matrix_space_ctx(gr_ctx):
235+ pass
236+
237+
238+ cdef class gr_matrix_ring_ctx(gr_ctx):
239+ pass
240+
241+
242+
218243cdef _gr_fmpz_ctx gr_fmpz_ctx_c
219244cdef _gr_fmpq_ctx gr_fmpq_ctx_c
220245cdef _gr_fmpzi_ctx gr_fmpzi_ctx_c
221246
222247
223248@cython.no_gc
224- cdef class _gr_fmpz_ctx(gr_ctx ):
249+ cdef class _gr_fmpz_ctx(gr_scalar_ctx ):
225250
226251 @staticmethod
227252 def new () -> _gr_fmpz_ctx:
@@ -240,7 +265,7 @@ cdef class _gr_fmpz_ctx(gr_ctx):
240265
241266
242267@cython.no_gc
243- cdef class _gr_fmpq_ctx(gr_ctx ):
268+ cdef class _gr_fmpq_ctx(gr_scalar_ctx ):
244269
245270 @staticmethod
246271 def new () -> _gr_fmpq_ctx:
@@ -259,7 +284,7 @@ cdef class _gr_fmpq_ctx(gr_ctx):
259284
260285
261286@cython.no_gc
262- cdef class _gr_fmpzi_ctx(gr_ctx ):
287+ cdef class _gr_fmpzi_ctx(gr_scalar_ctx ):
263288
264289 @staticmethod
265290 def new () -> _gr_fmpzi_ctx:
You can’t perform that action at this time.
0 commit comments