@@ -117,6 +117,8 @@ typedef enum
117117 GR_METHOD_CTX_IS_COMPLEX_VECTOR_SPACE ,
118118 GR_METHOD_CTX_IS_ORDERED_RING ,
119119
120+ GR_METHOD_CTX_IS_APPROX_COMMUTATIVE_RING ,
121+
120122 /* group properties */
121123 GR_METHOD_CTX_IS_MULTIPLICATIVE_GROUP ,
122124
@@ -972,13 +974,14 @@ GR_INLINE truth_t gr_ctx_is_zero_ring(gr_ctx_t ctx) { return GR_CTX_PREDICATE(ct
972974GR_INLINE truth_t gr_ctx_is_rational_vector_space (gr_ctx_t ctx ) { return GR_CTX_PREDICATE (ctx , CTX_IS_RATIONAL_VECTOR_SPACE )(ctx ); }
973975GR_INLINE truth_t gr_ctx_is_real_vector_space (gr_ctx_t ctx ) { return GR_CTX_PREDICATE (ctx , CTX_IS_REAL_VECTOR_SPACE )(ctx ); }
974976GR_INLINE truth_t gr_ctx_is_complex_vector_space (gr_ctx_t ctx ) { return GR_CTX_PREDICATE (ctx , CTX_IS_COMPLEX_VECTOR_SPACE )(ctx ); }
975-
976977GR_INLINE truth_t gr_ctx_is_unique_factorization_domain (gr_ctx_t ctx ) { return GR_CTX_PREDICATE (ctx , CTX_IS_UNIQUE_FACTORIZATION_DOMAIN )(ctx ); }
977978GR_INLINE truth_t gr_ctx_is_finite (gr_ctx_t ctx ) { return GR_CTX_PREDICATE (ctx , CTX_IS_FINITE )(ctx ); }
978979GR_INLINE truth_t gr_ctx_is_finite_characteristic (gr_ctx_t ctx ) { return GR_CTX_PREDICATE (ctx , CTX_IS_FINITE_CHARACTERISTIC )(ctx ); }
979980GR_INLINE truth_t gr_ctx_is_algebraically_closed (gr_ctx_t ctx ) { return GR_CTX_PREDICATE (ctx , CTX_IS_ALGEBRAICALLY_CLOSED )(ctx ); }
980981GR_INLINE truth_t gr_ctx_is_ordered_ring (gr_ctx_t ctx ) { return GR_CTX_PREDICATE (ctx , CTX_IS_ORDERED_RING )(ctx ); }
981982
983+ GR_INLINE truth_t gr_ctx_is_approx_commutative_ring (gr_ctx_t ctx ) { return GR_CTX_PREDICATE (ctx , CTX_IS_APPROX_COMMUTATIVE_RING )(ctx ); }
984+
982985GR_INLINE truth_t gr_ctx_is_multiplicative_group (gr_ctx_t ctx ) { return GR_CTX_PREDICATE (ctx , CTX_IS_MULTIPLICATIVE_GROUP )(ctx ); }
983986
984987GR_INLINE truth_t gr_ctx_is_exact (gr_ctx_t ctx ) { return GR_CTX_PREDICATE (ctx , CTX_IS_EXACT )(ctx ); }
@@ -1384,6 +1387,8 @@ truth_t gr_generic_ctx_predicate_false(gr_ctx_t ctx);
13841387void gr_ctx_uninitialized (gr_ctx_t ctx );
13851388
13861389void gr_ctx_init_random (gr_ctx_t ctx , flint_rand_t state );
1390+ void gr_ctx_init_random_commutative_ring (gr_ctx_t ctx , flint_rand_t state );
1391+ void gr_ctx_init_random_field (gr_ctx_t ctx , flint_rand_t state );
13871392
13881393void gr_ctx_init_fmpz (gr_ctx_t ctx );
13891394void gr_ctx_init_fmpq (gr_ctx_t ctx );
0 commit comments