passagemath-flint 10.6.1rc10__cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (361) hide show
  1. passagemath_flint-10.6.1rc10.dist-info/METADATA +122 -0
  2. passagemath_flint-10.6.1rc10.dist-info/RECORD +361 -0
  3. passagemath_flint-10.6.1rc10.dist-info/WHEEL +6 -0
  4. passagemath_flint-10.6.1rc10.dist-info/top_level.txt +2 -0
  5. passagemath_flint.libs/libflint-aecb9cc5.so.21.0.0 +0 -0
  6. passagemath_flint.libs/libgf2x-a4cdec90.so.3.0.0 +0 -0
  7. passagemath_flint.libs/libgfortran-8f1e9814.so.5.0.0 +0 -0
  8. passagemath_flint.libs/libgmp-6e109695.so.10.5.0 +0 -0
  9. passagemath_flint.libs/libgsl-cda90e79.so.28.0.0 +0 -0
  10. passagemath_flint.libs/libmpfi-e3c25853.so.0.0.0 +0 -0
  11. passagemath_flint.libs/libmpfr-82690d50.so.6.2.1 +0 -0
  12. passagemath_flint.libs/libntl-74e7d9a3.so.44.0.1 +0 -0
  13. passagemath_flint.libs/libopenblasp-r0-6dcb67f9.3.29.so +0 -0
  14. passagemath_flint.libs/libquadmath-828275a7.so.0.0.0 +0 -0
  15. sage/all__sagemath_flint.py +29 -0
  16. sage/combinat/all__sagemath_flint.py +1 -0
  17. sage/combinat/posets/all__sagemath_flint.py +1 -0
  18. sage/combinat/posets/hasse_cython_flint.cpython-310-x86_64-linux-gnu.so +0 -0
  19. sage/combinat/posets/hasse_cython_flint.pyx +194 -0
  20. sage/data_structures/all__sagemath_flint.py +1 -0
  21. sage/data_structures/bounded_integer_sequences.cpython-310-x86_64-linux-gnu.so +0 -0
  22. sage/data_structures/bounded_integer_sequences.pxd +62 -0
  23. sage/data_structures/bounded_integer_sequences.pyx +1418 -0
  24. sage/graphs/all__sagemath_flint.py +1 -0
  25. sage/graphs/chrompoly.cpython-310-x86_64-linux-gnu.so +0 -0
  26. sage/graphs/chrompoly.pyx +555 -0
  27. sage/graphs/matchpoly.cpython-310-x86_64-linux-gnu.so +0 -0
  28. sage/graphs/matchpoly.pyx +412 -0
  29. sage/libs/all__sagemath_flint.py +17 -0
  30. sage/libs/arb/__init__.py +1 -0
  31. sage/libs/arb/acb.pxd +154 -0
  32. sage/libs/arb/acb_calc.pxd +9 -0
  33. sage/libs/arb/acb_elliptic.pxd +25 -0
  34. sage/libs/arb/acb_hypgeom.pxd +74 -0
  35. sage/libs/arb/acb_mat.pxd +62 -0
  36. sage/libs/arb/acb_modular.pxd +17 -0
  37. sage/libs/arb/acb_poly.pxd +216 -0
  38. sage/libs/arb/arb.pxd +240 -0
  39. sage/libs/arb/arb_fmpz_poly.pxd +21 -0
  40. sage/libs/arb/arb_hypgeom.pxd +83 -0
  41. sage/libs/arb/arb_wrap.h +34 -0
  42. sage/libs/arb/arf.pxd +131 -0
  43. sage/libs/arb/arith.cpython-310-x86_64-linux-gnu.so +0 -0
  44. sage/libs/arb/arith.pyx +87 -0
  45. sage/libs/arb/bernoulli.pxd +6 -0
  46. sage/libs/arb/mag.pxd +77 -0
  47. sage/libs/arb/types.pxd +37 -0
  48. sage/libs/flint/__init__.py +1 -0
  49. sage/libs/flint/acb.pxd +270 -0
  50. sage/libs/flint/acb_calc.pxd +22 -0
  51. sage/libs/flint/acb_dft.pxd +51 -0
  52. sage/libs/flint/acb_dirichlet.pxd +112 -0
  53. sage/libs/flint/acb_elliptic.pxd +42 -0
  54. sage/libs/flint/acb_hypgeom.pxd +169 -0
  55. sage/libs/flint/acb_macros.pxd +9 -0
  56. sage/libs/flint/acb_mat.pxd +136 -0
  57. sage/libs/flint/acb_mat_macros.pxd +10 -0
  58. sage/libs/flint/acb_modular.pxd +62 -0
  59. sage/libs/flint/acb_poly.pxd +251 -0
  60. sage/libs/flint/acb_poly_macros.pxd +8 -0
  61. sage/libs/flint/acb_theta.pxd +124 -0
  62. sage/libs/flint/acf.pxd +32 -0
  63. sage/libs/flint/aprcl.pxd +84 -0
  64. sage/libs/flint/arb.pxd +382 -0
  65. sage/libs/flint/arb_calc.pxd +31 -0
  66. sage/libs/flint/arb_fmpz_poly.pxd +34 -0
  67. sage/libs/flint/arb_fpwrap.pxd +215 -0
  68. sage/libs/flint/arb_hypgeom.pxd +147 -0
  69. sage/libs/flint/arb_macros.pxd +9 -0
  70. sage/libs/flint/arb_mat.pxd +140 -0
  71. sage/libs/flint/arb_mat_macros.pxd +10 -0
  72. sage/libs/flint/arb_poly.pxd +237 -0
  73. sage/libs/flint/arf.pxd +167 -0
  74. sage/libs/flint/arith.cpython-310-x86_64-linux-gnu.so +0 -0
  75. sage/libs/flint/arith.pxd +76 -0
  76. sage/libs/flint/arith.pyx +77 -0
  77. sage/libs/flint/arith_sage.cpython-310-x86_64-linux-gnu.so +0 -0
  78. sage/libs/flint/arith_sage.pyx +308 -0
  79. sage/libs/flint/bernoulli.pxd +28 -0
  80. sage/libs/flint/bool_mat.pxd +52 -0
  81. sage/libs/flint/ca.pxd +203 -0
  82. sage/libs/flint/ca_ext.pxd +34 -0
  83. sage/libs/flint/ca_field.pxd +32 -0
  84. sage/libs/flint/ca_mat.pxd +117 -0
  85. sage/libs/flint/ca_poly.pxd +104 -0
  86. sage/libs/flint/ca_vec.pxd +46 -0
  87. sage/libs/flint/calcium.pxd +27 -0
  88. sage/libs/flint/d_mat.pxd +39 -0
  89. sage/libs/flint/d_vec.pxd +32 -0
  90. sage/libs/flint/dirichlet.pxd +57 -0
  91. sage/libs/flint/dlog.pxd +53 -0
  92. sage/libs/flint/double_extras.pxd +24 -0
  93. sage/libs/flint/double_interval.pxd +36 -0
  94. sage/libs/flint/fexpr.pxd +104 -0
  95. sage/libs/flint/fexpr_builtin.pxd +20 -0
  96. sage/libs/flint/fft.pxd +66 -0
  97. sage/libs/flint/flint.pxd +36 -0
  98. sage/libs/flint/flint_ntl_wrap.h +35 -0
  99. sage/libs/flint/flint_sage.cpython-310-x86_64-linux-gnu.so +0 -0
  100. sage/libs/flint/flint_sage.pyx +163 -0
  101. sage/libs/flint/flint_wrap.h +190 -0
  102. sage/libs/flint/fmpq.pxd +137 -0
  103. sage/libs/flint/fmpq_mat.pxd +105 -0
  104. sage/libs/flint/fmpq_mat_macros.pxd +10 -0
  105. sage/libs/flint/fmpq_mpoly.pxd +165 -0
  106. sage/libs/flint/fmpq_mpoly_factor.pxd +30 -0
  107. sage/libs/flint/fmpq_poly.pxd +241 -0
  108. sage/libs/flint/fmpq_poly_macros.pxd +9 -0
  109. sage/libs/flint/fmpq_poly_sage.cpython-310-x86_64-linux-gnu.so +0 -0
  110. sage/libs/flint/fmpq_poly_sage.pxd +31 -0
  111. sage/libs/flint/fmpq_poly_sage.pyx +48 -0
  112. sage/libs/flint/fmpq_vec.pxd +27 -0
  113. sage/libs/flint/fmpz.pxd +256 -0
  114. sage/libs/flint/fmpz_extras.pxd +32 -0
  115. sage/libs/flint/fmpz_factor.pxd +42 -0
  116. sage/libs/flint/fmpz_factor_sage.cpython-310-x86_64-linux-gnu.so +0 -0
  117. sage/libs/flint/fmpz_factor_sage.pxd +4 -0
  118. sage/libs/flint/fmpz_factor_sage.pyx +29 -0
  119. sage/libs/flint/fmpz_lll.pxd +49 -0
  120. sage/libs/flint/fmpz_macros.pxd +8 -0
  121. sage/libs/flint/fmpz_mat.pxd +184 -0
  122. sage/libs/flint/fmpz_mat_macros.pxd +10 -0
  123. sage/libs/flint/fmpz_mod.pxd +46 -0
  124. sage/libs/flint/fmpz_mod_mat.pxd +71 -0
  125. sage/libs/flint/fmpz_mod_mpoly.pxd +161 -0
  126. sage/libs/flint/fmpz_mod_mpoly_factor.pxd +28 -0
  127. sage/libs/flint/fmpz_mod_poly.pxd +249 -0
  128. sage/libs/flint/fmpz_mod_poly_factor.pxd +46 -0
  129. sage/libs/flint/fmpz_mod_vec.pxd +27 -0
  130. sage/libs/flint/fmpz_mpoly.pxd +224 -0
  131. sage/libs/flint/fmpz_mpoly_factor.pxd +29 -0
  132. sage/libs/flint/fmpz_mpoly_q.pxd +57 -0
  133. sage/libs/flint/fmpz_poly.cpython-310-x86_64-linux-gnu.so +0 -0
  134. sage/libs/flint/fmpz_poly.pxd +407 -0
  135. sage/libs/flint/fmpz_poly.pyx +19 -0
  136. sage/libs/flint/fmpz_poly_factor.pxd +33 -0
  137. sage/libs/flint/fmpz_poly_macros.pxd +8 -0
  138. sage/libs/flint/fmpz_poly_mat.pxd +71 -0
  139. sage/libs/flint/fmpz_poly_q.pxd +55 -0
  140. sage/libs/flint/fmpz_poly_sage.cpython-310-x86_64-linux-gnu.so +0 -0
  141. sage/libs/flint/fmpz_poly_sage.pxd +20 -0
  142. sage/libs/flint/fmpz_poly_sage.pyx +500 -0
  143. sage/libs/flint/fmpz_vec.pxd +80 -0
  144. sage/libs/flint/fmpzi.pxd +52 -0
  145. sage/libs/flint/fq.pxd +97 -0
  146. sage/libs/flint/fq_default.pxd +84 -0
  147. sage/libs/flint/fq_default_mat.pxd +70 -0
  148. sage/libs/flint/fq_default_poly.pxd +97 -0
  149. sage/libs/flint/fq_default_poly_factor.pxd +39 -0
  150. sage/libs/flint/fq_embed.pxd +28 -0
  151. sage/libs/flint/fq_mat.pxd +83 -0
  152. sage/libs/flint/fq_nmod.pxd +95 -0
  153. sage/libs/flint/fq_nmod_embed.pxd +28 -0
  154. sage/libs/flint/fq_nmod_mat.pxd +83 -0
  155. sage/libs/flint/fq_nmod_mpoly.pxd +130 -0
  156. sage/libs/flint/fq_nmod_mpoly_factor.pxd +28 -0
  157. sage/libs/flint/fq_nmod_poly.pxd +202 -0
  158. sage/libs/flint/fq_nmod_poly_factor.pxd +47 -0
  159. sage/libs/flint/fq_nmod_vec.pxd +33 -0
  160. sage/libs/flint/fq_poly.pxd +204 -0
  161. sage/libs/flint/fq_poly_factor.pxd +47 -0
  162. sage/libs/flint/fq_vec.pxd +33 -0
  163. sage/libs/flint/fq_zech.pxd +99 -0
  164. sage/libs/flint/fq_zech_embed.pxd +28 -0
  165. sage/libs/flint/fq_zech_mat.pxd +78 -0
  166. sage/libs/flint/fq_zech_poly.pxd +198 -0
  167. sage/libs/flint/fq_zech_poly_factor.pxd +47 -0
  168. sage/libs/flint/fq_zech_vec.pxd +33 -0
  169. sage/libs/flint/gr.pxd +174 -0
  170. sage/libs/flint/gr_generic.pxd +215 -0
  171. sage/libs/flint/gr_mat.pxd +161 -0
  172. sage/libs/flint/gr_mpoly.pxd +68 -0
  173. sage/libs/flint/gr_poly.pxd +276 -0
  174. sage/libs/flint/gr_special.pxd +237 -0
  175. sage/libs/flint/gr_vec.pxd +120 -0
  176. sage/libs/flint/hypgeom.pxd +24 -0
  177. sage/libs/flint/long_extras.pxd +23 -0
  178. sage/libs/flint/mag.pxd +131 -0
  179. sage/libs/flint/mag_macros.pxd +8 -0
  180. sage/libs/flint/mpf_mat.pxd +36 -0
  181. sage/libs/flint/mpf_vec.pxd +34 -0
  182. sage/libs/flint/mpfr_mat.pxd +27 -0
  183. sage/libs/flint/mpfr_vec.pxd +25 -0
  184. sage/libs/flint/mpn_extras.pxd +41 -0
  185. sage/libs/flint/mpoly.pxd +72 -0
  186. sage/libs/flint/nf.pxd +19 -0
  187. sage/libs/flint/nf_elem.pxd +74 -0
  188. sage/libs/flint/nmod.pxd +35 -0
  189. sage/libs/flint/nmod_mat.pxd +104 -0
  190. sage/libs/flint/nmod_mpoly.pxd +144 -0
  191. sage/libs/flint/nmod_mpoly_factor.pxd +28 -0
  192. sage/libs/flint/nmod_poly.pxd +339 -0
  193. sage/libs/flint/nmod_poly_factor.pxd +44 -0
  194. sage/libs/flint/nmod_poly_linkage.pxi +710 -0
  195. sage/libs/flint/nmod_poly_mat.pxd +76 -0
  196. sage/libs/flint/nmod_vec.pxd +40 -0
  197. sage/libs/flint/ntl_interface.pxd +17 -0
  198. sage/libs/flint/padic.pxd +93 -0
  199. sage/libs/flint/padic_mat.pxd +64 -0
  200. sage/libs/flint/padic_poly.pxd +88 -0
  201. sage/libs/flint/partitions.pxd +23 -0
  202. sage/libs/flint/perm.pxd +26 -0
  203. sage/libs/flint/profiler.pxd +24 -0
  204. sage/libs/flint/qadic.pxd +77 -0
  205. sage/libs/flint/qfb.pxd +44 -0
  206. sage/libs/flint/qqbar.pxd +172 -0
  207. sage/libs/flint/qsieve.cpython-310-x86_64-linux-gnu.so +0 -0
  208. sage/libs/flint/qsieve.pxd +41 -0
  209. sage/libs/flint/qsieve.pyx +21 -0
  210. sage/libs/flint/qsieve_sage.cpython-310-x86_64-linux-gnu.so +0 -0
  211. sage/libs/flint/qsieve_sage.pyx +67 -0
  212. sage/libs/flint/thread_pool.pxd +25 -0
  213. sage/libs/flint/types.pxd +2076 -0
  214. sage/libs/flint/ulong_extras.cpython-310-x86_64-linux-gnu.so +0 -0
  215. sage/libs/flint/ulong_extras.pxd +141 -0
  216. sage/libs/flint/ulong_extras.pyx +21 -0
  217. sage/libs/flint/ulong_extras_sage.cpython-310-x86_64-linux-gnu.so +0 -0
  218. sage/libs/flint/ulong_extras_sage.pyx +21 -0
  219. sage/matrix/all__sagemath_flint.py +1 -0
  220. sage/matrix/change_ring.cpython-310-x86_64-linux-gnu.so +0 -0
  221. sage/matrix/change_ring.pyx +43 -0
  222. sage/matrix/matrix_complex_ball_dense.cpython-310-x86_64-linux-gnu.so +0 -0
  223. sage/matrix/matrix_complex_ball_dense.pxd +14 -0
  224. sage/matrix/matrix_complex_ball_dense.pyx +973 -0
  225. sage/matrix/matrix_cyclo_dense.cpython-310-x86_64-linux-gnu.so +0 -0
  226. sage/matrix/matrix_cyclo_dense.pxd +16 -0
  227. sage/matrix/matrix_cyclo_dense.pyx +1761 -0
  228. sage/matrix/matrix_integer_dense.cpython-310-x86_64-linux-gnu.so +0 -0
  229. sage/matrix/matrix_integer_dense.pxd +32 -0
  230. sage/matrix/matrix_integer_dense.pyx +5801 -0
  231. sage/matrix/matrix_integer_dense_hnf.py +1294 -0
  232. sage/matrix/matrix_integer_dense_saturation.py +346 -0
  233. sage/matrix/matrix_integer_sparse.cpython-310-x86_64-linux-gnu.so +0 -0
  234. sage/matrix/matrix_integer_sparse.pxd +9 -0
  235. sage/matrix/matrix_integer_sparse.pyx +1090 -0
  236. sage/matrix/matrix_rational_dense.cpython-310-x86_64-linux-gnu.so +0 -0
  237. sage/matrix/matrix_rational_dense.pxd +23 -0
  238. sage/matrix/matrix_rational_dense.pyx +2995 -0
  239. sage/matrix/matrix_rational_sparse.cpython-310-x86_64-linux-gnu.so +0 -0
  240. sage/matrix/matrix_rational_sparse.pxd +11 -0
  241. sage/matrix/matrix_rational_sparse.pyx +789 -0
  242. sage/matrix/misc_flint.cpython-310-x86_64-linux-gnu.so +0 -0
  243. sage/matrix/misc_flint.pyx +109 -0
  244. sage/modular/all__sagemath_flint.py +1 -0
  245. sage/modular/modform/all__sagemath_flint.py +1 -0
  246. sage/modular/modform/eis_series_cython.cpython-310-x86_64-linux-gnu.so +0 -0
  247. sage/modular/modform/eis_series_cython.pyx +226 -0
  248. sage/modular/modsym/all__sagemath_flint.py +1 -0
  249. sage/modular/modsym/apply.cpython-310-x86_64-linux-gnu.so +0 -0
  250. sage/modular/modsym/apply.pxd +6 -0
  251. sage/modular/modsym/apply.pyx +113 -0
  252. sage/modular/modsym/heilbronn.cpython-310-x86_64-linux-gnu.so +0 -0
  253. sage/modular/modsym/heilbronn.pyx +966 -0
  254. sage/modular/pollack_stevens/all__sagemath_flint.py +1 -0
  255. sage/modular/pollack_stevens/dist.cpython-310-x86_64-linux-gnu.so +0 -0
  256. sage/modular/pollack_stevens/dist.pxd +38 -0
  257. sage/modular/pollack_stevens/dist.pyx +1439 -0
  258. sage/quivers/algebra.py +691 -0
  259. sage/quivers/algebra_elements.cpython-310-x86_64-linux-gnu.so +0 -0
  260. sage/quivers/algebra_elements.pxd +97 -0
  261. sage/quivers/algebra_elements.pxi +1324 -0
  262. sage/quivers/algebra_elements.pyx +1424 -0
  263. sage/quivers/all.py +1 -0
  264. sage/quivers/ar_quiver.py +917 -0
  265. sage/quivers/homspace.py +640 -0
  266. sage/quivers/morphism.py +1282 -0
  267. sage/quivers/path_semigroup.py +1155 -0
  268. sage/quivers/paths.cpython-310-x86_64-linux-gnu.so +0 -0
  269. sage/quivers/paths.pxd +13 -0
  270. sage/quivers/paths.pyx +809 -0
  271. sage/quivers/representation.py +2975 -0
  272. sage/rings/all__sagemath_flint.py +37 -0
  273. sage/rings/cif.py +4 -0
  274. sage/rings/complex_arb.cpython-310-x86_64-linux-gnu.so +0 -0
  275. sage/rings/complex_arb.pxd +29 -0
  276. sage/rings/complex_arb.pyx +5176 -0
  277. sage/rings/complex_interval.cpython-310-x86_64-linux-gnu.so +0 -0
  278. sage/rings/complex_interval.pxd +30 -0
  279. sage/rings/complex_interval.pyx +2475 -0
  280. sage/rings/complex_interval_field.py +711 -0
  281. sage/rings/convert/all.py +1 -0
  282. sage/rings/convert/mpfi.cpython-310-x86_64-linux-gnu.so +0 -0
  283. sage/rings/convert/mpfi.pxd +6 -0
  284. sage/rings/convert/mpfi.pyx +576 -0
  285. sage/rings/factorint_flint.cpython-310-x86_64-linux-gnu.so +0 -0
  286. sage/rings/factorint_flint.pyx +99 -0
  287. sage/rings/fraction_field_FpT.cpython-310-x86_64-linux-gnu.so +0 -0
  288. sage/rings/fraction_field_FpT.pxd +28 -0
  289. sage/rings/fraction_field_FpT.pyx +2043 -0
  290. sage/rings/imaginary_unit.py +5 -0
  291. sage/rings/monomials.py +73 -0
  292. sage/rings/number_field/S_unit_solver.py +2870 -0
  293. sage/rings/number_field/all__sagemath_flint.py +7 -0
  294. sage/rings/number_field/bdd_height.py +664 -0
  295. sage/rings/number_field/class_group.py +762 -0
  296. sage/rings/number_field/galois_group.py +1307 -0
  297. sage/rings/number_field/homset.py +612 -0
  298. sage/rings/number_field/maps.py +687 -0
  299. sage/rings/number_field/morphism.py +272 -0
  300. sage/rings/number_field/number_field.py +12820 -0
  301. sage/rings/number_field/number_field_element.cpython-310-x86_64-linux-gnu.so +0 -0
  302. sage/rings/number_field/number_field_element.pxd +59 -0
  303. sage/rings/number_field/number_field_element.pyx +5735 -0
  304. sage/rings/number_field/number_field_element_quadratic.cpython-310-x86_64-linux-gnu.so +0 -0
  305. sage/rings/number_field/number_field_element_quadratic.pxd +34 -0
  306. sage/rings/number_field/number_field_element_quadratic.pyx +3185 -0
  307. sage/rings/number_field/number_field_ideal_rel.py +925 -0
  308. sage/rings/number_field/number_field_morphisms.cpython-310-x86_64-linux-gnu.so +0 -0
  309. sage/rings/number_field/number_field_morphisms.pyx +781 -0
  310. sage/rings/number_field/number_field_rel.py +2734 -0
  311. sage/rings/number_field/order.py +2981 -0
  312. sage/rings/number_field/order_ideal.py +804 -0
  313. sage/rings/number_field/selmer_group.py +715 -0
  314. sage/rings/number_field/small_primes_of_degree_one.py +242 -0
  315. sage/rings/number_field/splitting_field.py +606 -0
  316. sage/rings/number_field/structure.py +380 -0
  317. sage/rings/number_field/unit_group.py +721 -0
  318. sage/rings/padics/all__sagemath_flint.py +3 -0
  319. sage/rings/polynomial/all__sagemath_flint.py +1 -0
  320. sage/rings/polynomial/complex_roots.py +312 -0
  321. sage/rings/polynomial/evaluation_flint.cpython-310-x86_64-linux-gnu.so +0 -0
  322. sage/rings/polynomial/evaluation_flint.pxd +7 -0
  323. sage/rings/polynomial/evaluation_flint.pyx +68 -0
  324. sage/rings/polynomial/hilbert.cpython-310-x86_64-linux-gnu.so +0 -0
  325. sage/rings/polynomial/hilbert.pyx +602 -0
  326. sage/rings/polynomial/polynomial_complex_arb.cpython-310-x86_64-linux-gnu.so +0 -0
  327. sage/rings/polynomial/polynomial_complex_arb.pxd +7 -0
  328. sage/rings/polynomial/polynomial_complex_arb.pyx +963 -0
  329. sage/rings/polynomial/polynomial_integer_dense_flint.cpython-310-x86_64-linux-gnu.so +0 -0
  330. sage/rings/polynomial/polynomial_integer_dense_flint.pxd +13 -0
  331. sage/rings/polynomial/polynomial_integer_dense_flint.pyx +1881 -0
  332. sage/rings/polynomial/polynomial_number_field.cpython-310-x86_64-linux-gnu.so +0 -0
  333. sage/rings/polynomial/polynomial_number_field.pyx +345 -0
  334. sage/rings/polynomial/polynomial_rational_flint.cpython-310-x86_64-linux-gnu.so +0 -0
  335. sage/rings/polynomial/polynomial_rational_flint.pxd +20 -0
  336. sage/rings/polynomial/polynomial_rational_flint.pyx +2598 -0
  337. sage/rings/polynomial/polynomial_zmod_flint.cpython-310-x86_64-linux-gnu.so +0 -0
  338. sage/rings/polynomial/polynomial_zmod_flint.pxd +20 -0
  339. sage/rings/polynomial/polynomial_zmod_flint.pyx +1063 -0
  340. sage/rings/polynomial/real_roots.cpython-310-x86_64-linux-gnu.so +0 -0
  341. sage/rings/polynomial/real_roots.pxd +81 -0
  342. sage/rings/polynomial/real_roots.pyx +4704 -0
  343. sage/rings/polynomial/refine_root.cpython-310-x86_64-linux-gnu.so +0 -0
  344. sage/rings/polynomial/refine_root.pyx +142 -0
  345. sage/rings/polynomial/weil/all.py +4 -0
  346. sage/rings/polynomial/weil/power_sums.h +46 -0
  347. sage/rings/polynomial/weil/weil_polynomials.cpython-310-x86_64-linux-gnu.so +0 -0
  348. sage/rings/polynomial/weil/weil_polynomials.pyx +596 -0
  349. sage/rings/qqbar.py +9025 -0
  350. sage/rings/real_arb.cpython-310-x86_64-linux-gnu.so +0 -0
  351. sage/rings/real_arb.pxd +21 -0
  352. sage/rings/real_arb.pyx +4065 -0
  353. sage/rings/real_interval_absolute.cpython-310-x86_64-linux-gnu.so +0 -0
  354. sage/rings/real_interval_absolute.pyx +1073 -0
  355. sage/rings/real_mpfi.cpython-310-x86_64-linux-gnu.so +0 -0
  356. sage/rings/real_mpfi.pyx +5428 -0
  357. sage/schemes/all__sagemath_flint.py +1 -0
  358. sage/schemes/elliptic_curves/all__sagemath_flint.py +1 -0
  359. sage/schemes/elliptic_curves/descent_two_isogeny.cpython-310-x86_64-linux-gnu.so +0 -0
  360. sage/schemes/elliptic_curves/descent_two_isogeny.pyx +1387 -0
  361. sage/schemes/elliptic_curves/descent_two_isogeny_pari.pxd +5 -0
@@ -0,0 +1,308 @@
1
+ # sage_setup: distribution = sagemath-flint
2
+ # distutils: extra_compile_args = -D_XPG6
3
+ """
4
+ FLINT Arithmetic Functions
5
+ """
6
+
7
+ #*****************************************************************************
8
+ # Copyright (C) 2013 Fredrik Johansson <fredrik.johansson@gmail.com>
9
+ #
10
+ # This program is free software: you can redistribute it and/or modify
11
+ # it under the terms of the GNU General Public License as published by
12
+ # the Free Software Foundation, either version 2 of the License, or
13
+ # (at your option) any later version.
14
+ # http://www.gnu.org/licenses/
15
+ #*****************************************************************************
16
+
17
+ from cysignals.signals cimport sig_on, sig_off
18
+
19
+ from sage.libs.flint.types cimport *
20
+ from sage.libs.flint.fmpz cimport *
21
+ from sage.libs.flint.fmpq cimport *
22
+ from sage.libs.flint.arith cimport *
23
+
24
+
25
+ from sage.rings.integer cimport Integer
26
+ from sage.rings.rational cimport Rational
27
+
28
+
29
+ def bell_number(unsigned long n):
30
+ """
31
+ Return the `n`-th Bell number.
32
+
33
+ See :wikipedia:`Bell_number`.
34
+
35
+ ALGORITHM:
36
+
37
+ Uses :c:func:`arith_bell_number`.
38
+
39
+ EXAMPLES::
40
+
41
+ sage: from sage.libs.flint.arith_sage import bell_number
42
+ sage: [bell_number(i) for i in range(10)]
43
+ [1, 1, 2, 5, 15, 52, 203, 877, 4140, 21147]
44
+ sage: bell_number(10)
45
+ 115975
46
+ sage: bell_number(40)
47
+ 157450588391204931289324344702531067
48
+ sage: bell_number(100)
49
+ 47585391276764833658790768841387207826363669686825611466616334637559114497892442622672724044217756306953557882560751
50
+ """
51
+ cdef fmpz_t ans_fmpz
52
+ cdef Integer ans = Integer(0)
53
+
54
+ fmpz_init(ans_fmpz)
55
+
56
+ if n > 1000:
57
+ sig_on()
58
+ arith_bell_number(ans_fmpz, n)
59
+ fmpz_get_mpz(ans.value, ans_fmpz)
60
+ fmpz_clear(ans_fmpz)
61
+ if n > 1000:
62
+ sig_off()
63
+
64
+ return ans
65
+
66
+
67
+ def bernoulli_number(unsigned long n):
68
+ """
69
+ Return the `n`-th Bernoulli number.
70
+
71
+ See :wikipedia:`Bernoulli_number`.
72
+
73
+ EXAMPLES::
74
+
75
+ sage: from sage.libs.flint.arith_sage import bernoulli_number
76
+ sage: [bernoulli_number(i) for i in range(10)]
77
+ [1, -1/2, 1/6, 0, -1/30, 0, 1/42, 0, -1/30, 0]
78
+ sage: bernoulli_number(10)
79
+ 5/66
80
+ sage: bernoulli_number(40)
81
+ -261082718496449122051/13530
82
+ sage: bernoulli_number(100)
83
+ -94598037819122125295227433069493721872702841533066936133385696204311395415197247711/33330
84
+ """
85
+ cdef fmpq_t ans_fmpq
86
+ cdef Rational ans = <Rational>Rational.__new__(Rational)
87
+
88
+ fmpq_init(ans_fmpq)
89
+ sig_on()
90
+ arith_bernoulli_number(ans_fmpq, n)
91
+ sig_off()
92
+ fmpq_get_mpq(ans.value, ans_fmpq)
93
+ fmpq_clear(ans_fmpq)
94
+
95
+ return ans
96
+
97
+
98
+ def euler_number(unsigned long n):
99
+ """
100
+ Return the Euler number of index `n`.
101
+
102
+ See :wikipedia:`Euler_number`.
103
+
104
+ EXAMPLES::
105
+
106
+ sage: from sage.libs.flint.arith_sage import euler_number
107
+ sage: [euler_number(i) for i in range(8)]
108
+ [1, 0, -1, 0, 5, 0, -61, 0]
109
+ """
110
+ cdef fmpz_t ans_fmpz
111
+ cdef Integer ans = Integer(0)
112
+
113
+ fmpz_init(ans_fmpz)
114
+
115
+ if n > 1000:
116
+ sig_on()
117
+ arith_euler_number(ans_fmpz, n)
118
+ fmpz_get_mpz(ans.value, ans_fmpz)
119
+ fmpz_clear(ans_fmpz)
120
+ if n > 1000:
121
+ sig_off()
122
+
123
+ return ans
124
+
125
+
126
+ def stirling_number_1(long n, long k):
127
+ """
128
+ Return the unsigned Stirling number of the first kind.
129
+
130
+ EXAMPLES::
131
+
132
+ sage: from sage.libs.flint.arith_sage import stirling_number_1
133
+ sage: [stirling_number_1(8,i) for i in range(9)]
134
+ [0, 5040, 13068, 13132, 6769, 1960, 322, 28, 1]
135
+ """
136
+ cdef fmpz_t ans_fmpz
137
+ cdef Integer ans = Integer(0)
138
+
139
+ fmpz_init(ans_fmpz)
140
+
141
+ if n > 1000:
142
+ sig_on()
143
+ arith_stirling_number_1u(ans_fmpz, n, k)
144
+ fmpz_get_mpz(ans.value, ans_fmpz)
145
+ fmpz_clear(ans_fmpz)
146
+ if n > 1000:
147
+ sig_off()
148
+ return ans
149
+
150
+
151
+ def stirling_number_2(long n, long k):
152
+ """
153
+ Return the Stirling number of the second kind.
154
+
155
+ EXAMPLES::
156
+
157
+ sage: from sage.libs.flint.arith_sage import stirling_number_2
158
+ sage: [stirling_number_2(8,i) for i in range(9)]
159
+ [0, 1, 127, 966, 1701, 1050, 266, 28, 1]
160
+ """
161
+ cdef fmpz_t ans_fmpz
162
+ cdef Integer ans = Integer(0)
163
+
164
+ fmpz_init(ans_fmpz)
165
+
166
+ if n > 1000:
167
+ sig_on()
168
+ arith_stirling_number_2(ans_fmpz, n, k)
169
+ fmpz_get_mpz(ans.value, ans_fmpz)
170
+ fmpz_clear(ans_fmpz)
171
+ if n > 1000:
172
+ sig_off()
173
+ return ans
174
+
175
+
176
+ def number_of_partitions(unsigned long n):
177
+ """
178
+ Return the number of partitions of the integer `n`.
179
+
180
+ See :wikipedia:`Partition_(number_theory)`.
181
+
182
+ EXAMPLES::
183
+
184
+ sage: from sage.libs.flint.arith_sage import number_of_partitions
185
+ sage: number_of_partitions(3)
186
+ 3
187
+ sage: number_of_partitions(10)
188
+ 42
189
+ sage: number_of_partitions(40)
190
+ 37338
191
+ sage: number_of_partitions(100)
192
+ 190569292
193
+ sage: number_of_partitions(100000)
194
+ 27493510569775696512677516320986352688173429315980054758203125984302147328114964173055050741660736621590157844774296248940493063070200461792764493033510116079342457190155718943509725312466108452006369558934464248716828789832182345009262853831404597021307130674510624419227311238999702284408609370935531629697851569569892196108480158600569421098519
195
+
196
+ TESTS::
197
+
198
+ sage: n = 500 + randint(0,500)
199
+ sage: number_of_partitions( n - (n % 385) + 369) % 385 == 0
200
+ True
201
+ sage: n = 1500 + randint(0,1500)
202
+ sage: number_of_partitions( n - (n % 385) + 369) % 385 == 0
203
+ True
204
+ sage: n = 1000000 + randint(0,1000000)
205
+ sage: number_of_partitions( n - (n % 385) + 369) % 385 == 0
206
+ True
207
+ sage: n = 1000000 + randint(0,1000000)
208
+ sage: number_of_partitions( n - (n % 385) + 369) % 385 == 0
209
+ True
210
+ sage: n = 1000000 + randint(0,1000000)
211
+ sage: number_of_partitions( n - (n % 385) + 369) % 385 == 0
212
+ True
213
+ sage: n = 1000000 + randint(0,1000000)
214
+ sage: number_of_partitions( n - (n % 385) + 369) % 385 == 0
215
+ True
216
+ sage: n = 1000000 + randint(0,1000000)
217
+ sage: number_of_partitions( n - (n % 385) + 369) % 385 == 0
218
+ True
219
+ sage: n = 1000000 + randint(0,1000000)
220
+ sage: number_of_partitions( n - (n % 385) + 369) % 385 == 0
221
+ True
222
+ sage: n = 100000000 + randint(0,100000000)
223
+ sage: number_of_partitions( n - (n % 385) + 369) % 385 == 0 # long time
224
+ True
225
+ """
226
+ cdef fmpz_t ans_fmpz
227
+ cdef Integer ans
228
+
229
+ fmpz_init(ans_fmpz)
230
+
231
+ if n > 1000:
232
+ sig_on()
233
+
234
+ arith_number_of_partitions(ans_fmpz, n)
235
+
236
+ if n > 1000:
237
+ sig_off()
238
+
239
+ ans = Integer(0)
240
+ fmpz_get_mpz(ans.value, ans_fmpz)
241
+ fmpz_clear(ans_fmpz)
242
+ return ans
243
+
244
+
245
+ def dedekind_sum(p, q):
246
+ """
247
+ Return the Dedekind sum `s(p, q)` where `p` and `q` are arbitrary integers.
248
+
249
+ See :wikipedia:`Dedekind_sum`.
250
+
251
+ EXAMPLES::
252
+
253
+ sage: from sage.libs.flint.arith_sage import dedekind_sum
254
+ sage: dedekind_sum(4, 5)
255
+ -1/5
256
+ """
257
+ p = Integer(p)
258
+ q = Integer(q)
259
+ s = Rational(0)
260
+
261
+ cdef fmpz_t p_fmpz, q_fmpz
262
+ cdef fmpq_t s_fmpq
263
+
264
+ fmpz_init(p_fmpz)
265
+ fmpz_init(q_fmpz)
266
+ fmpq_init(s_fmpq)
267
+
268
+ fmpz_set_mpz(p_fmpz, (<Integer>p).value)
269
+ fmpz_set_mpz(q_fmpz, (<Integer>q).value)
270
+
271
+ arith_dedekind_sum(s_fmpq, p_fmpz, q_fmpz)
272
+
273
+ fmpq_get_mpq((<Rational>s).value, s_fmpq)
274
+
275
+ fmpz_clear(p_fmpz)
276
+ fmpz_clear(q_fmpz)
277
+ fmpq_clear(s_fmpq)
278
+
279
+ return s
280
+
281
+
282
+ def harmonic_number(unsigned long n):
283
+ """
284
+ Return the harmonic number `H_n`.
285
+
286
+ See :wikipedia:`Harmonic_number`.
287
+
288
+ EXAMPLES::
289
+
290
+ sage: from sage.libs.flint.arith_sage import harmonic_number
291
+ sage: n = 500 + randint(0,500)
292
+ sage: bool( sum(1/k for k in range(1,n+1)) == harmonic_number(n) )
293
+ True
294
+ """
295
+ s = Rational(0)
296
+ cdef fmpq_t s_fmpq
297
+
298
+ fmpq_init(s_fmpq)
299
+
300
+ sig_on()
301
+ arith_harmonic_number(s_fmpq, n)
302
+
303
+ fmpq_get_mpq((<Rational>s).value, s_fmpq)
304
+ sig_off()
305
+
306
+ fmpq_clear(s_fmpq)
307
+
308
+ return s
@@ -0,0 +1,28 @@
1
+ # sage_setup: distribution = sagemath-flint
2
+ # distutils: libraries = flint
3
+ # distutils: depends = flint/bernoulli.h
4
+
5
+ ################################################################################
6
+ # This file is auto-generated by the script
7
+ # SAGE_ROOT/src/sage_setup/autogen/flint_autogen.py.
8
+ # From the commit 3e2c3a3e091106a25ca9c6fba28e02f2cbcd654a
9
+ # Do not modify by hand! Fix and rerun the script instead.
10
+ ################################################################################
11
+
12
+ from libc.stdio cimport FILE
13
+ from sage.libs.gmp.types cimport *
14
+ from sage.libs.mpfr.types cimport *
15
+ from sage.libs.flint.types cimport *
16
+
17
+ cdef extern from "flint_wrap.h":
18
+ void bernoulli_rev_init(bernoulli_rev_t it, ulong n) noexcept
19
+ void bernoulli_rev_next(fmpz_t numer, fmpz_t denom, bernoulli_rev_t it) noexcept
20
+ void bernoulli_rev_clear(bernoulli_rev_t it) noexcept
21
+ void bernoulli_fmpq_vec_no_cache(fmpq * res, ulong a, slong num) noexcept
22
+ void bernoulli_cache_compute(slong n) noexcept
23
+ slong bernoulli_bound_2exp_si(ulong n) noexcept
24
+ ulong bernoulli_mod_p_harvey(ulong n, ulong p) noexcept
25
+ void _bernoulli_fmpq_ui_zeta(fmpz_t num, fmpz_t den, ulong n) noexcept
26
+ void _bernoulli_fmpq_ui_multi_mod(fmpz_t num, fmpz_t den, ulong n, double alpha) noexcept
27
+ void _bernoulli_fmpq_ui(fmpz_t num, fmpz_t den, ulong n) noexcept
28
+ void bernoulli_fmpq_ui(fmpq_t b, ulong n) noexcept
@@ -0,0 +1,52 @@
1
+ # sage_setup: distribution = sagemath-flint
2
+ # distutils: libraries = flint
3
+ # distutils: depends = flint/bool_mat.h
4
+
5
+ ################################################################################
6
+ # This file is auto-generated by the script
7
+ # SAGE_ROOT/src/sage_setup/autogen/flint_autogen.py.
8
+ # From the commit 3e2c3a3e091106a25ca9c6fba28e02f2cbcd654a
9
+ # Do not modify by hand! Fix and rerun the script instead.
10
+ ################################################################################
11
+
12
+ from libc.stdio cimport FILE
13
+ from sage.libs.gmp.types cimport *
14
+ from sage.libs.mpfr.types cimport *
15
+ from sage.libs.flint.types cimport *
16
+
17
+ cdef extern from "flint_wrap.h":
18
+ int bool_mat_get_entry(const bool_mat_t mat, slong i, slong j) noexcept
19
+ void bool_mat_set_entry(bool_mat_t mat, slong i, slong j, int x) noexcept
20
+ void bool_mat_init(bool_mat_t mat, slong r, slong c) noexcept
21
+ void bool_mat_clear(bool_mat_t mat) noexcept
22
+ bint bool_mat_is_empty(const bool_mat_t mat) noexcept
23
+ bint bool_mat_is_square(const bool_mat_t mat) noexcept
24
+ void bool_mat_set(bool_mat_t dest, const bool_mat_t src) noexcept
25
+ void bool_mat_print(const bool_mat_t mat) noexcept
26
+ void bool_mat_fprint(FILE * file, const bool_mat_t mat) noexcept
27
+ bint bool_mat_equal(const bool_mat_t mat1, const bool_mat_t mat2) noexcept
28
+ int bool_mat_any(const bool_mat_t mat) noexcept
29
+ int bool_mat_all(const bool_mat_t mat) noexcept
30
+ bint bool_mat_is_diagonal(const bool_mat_t A) noexcept
31
+ bint bool_mat_is_lower_triangular(const bool_mat_t A) noexcept
32
+ bint bool_mat_is_transitive(const bool_mat_t mat) noexcept
33
+ bint bool_mat_is_nilpotent(const bool_mat_t A) noexcept
34
+ void bool_mat_randtest(bool_mat_t mat, flint_rand_t state) noexcept
35
+ void bool_mat_randtest_diagonal(bool_mat_t mat, flint_rand_t state) noexcept
36
+ void bool_mat_randtest_nilpotent(bool_mat_t mat, flint_rand_t state) noexcept
37
+ void bool_mat_zero(bool_mat_t mat) noexcept
38
+ void bool_mat_one(bool_mat_t mat) noexcept
39
+ void bool_mat_directed_path(bool_mat_t A) noexcept
40
+ void bool_mat_directed_cycle(bool_mat_t A) noexcept
41
+ void bool_mat_transpose(bool_mat_t dest, const bool_mat_t src) noexcept
42
+ void bool_mat_complement(bool_mat_t B, const bool_mat_t A) noexcept
43
+ void bool_mat_add(bool_mat_t res, const bool_mat_t mat1, const bool_mat_t mat2) noexcept
44
+ void bool_mat_mul(bool_mat_t res, const bool_mat_t mat1, const bool_mat_t mat2) noexcept
45
+ void bool_mat_mul_entrywise(bool_mat_t res, const bool_mat_t mat1, const bool_mat_t mat2) noexcept
46
+ void bool_mat_sqr(bool_mat_t B, const bool_mat_t A) noexcept
47
+ void bool_mat_pow_ui(bool_mat_t B, const bool_mat_t A, ulong exp) noexcept
48
+ int bool_mat_trace(const bool_mat_t mat) noexcept
49
+ slong bool_mat_nilpotency_degree(const bool_mat_t A) noexcept
50
+ void bool_mat_transitive_closure(bool_mat_t B, const bool_mat_t A) noexcept
51
+ slong bool_mat_get_strongly_connected_components(slong * p, const bool_mat_t A) noexcept
52
+ slong bool_mat_all_pairs_longest_walk(fmpz_mat_t B, const bool_mat_t A) noexcept
sage/libs/flint/ca.pxd ADDED
@@ -0,0 +1,203 @@
1
+ # sage_setup: distribution = sagemath-flint
2
+ # distutils: libraries = flint
3
+ # distutils: depends = flint/ca.h
4
+
5
+ ################################################################################
6
+ # This file is auto-generated by the script
7
+ # SAGE_ROOT/src/sage_setup/autogen/flint_autogen.py.
8
+ # From the commit 3e2c3a3e091106a25ca9c6fba28e02f2cbcd654a
9
+ # Do not modify by hand! Fix and rerun the script instead.
10
+ ################################################################################
11
+
12
+ from libc.stdio cimport FILE
13
+ from sage.libs.gmp.types cimport *
14
+ from sage.libs.mpfr.types cimport *
15
+ from sage.libs.flint.types cimport *
16
+
17
+ cdef extern from "flint_wrap.h":
18
+ void ca_ctx_init(ca_ctx_t ctx) noexcept
19
+ void ca_ctx_clear(ca_ctx_t ctx) noexcept
20
+ void ca_ctx_print(ca_ctx_t ctx) noexcept
21
+ void ca_init(ca_t x, ca_ctx_t ctx) noexcept
22
+ void ca_clear(ca_t x, ca_ctx_t ctx) noexcept
23
+ void ca_swap(ca_t x, ca_t y, ca_ctx_t ctx) noexcept
24
+ void ca_get_fexpr(fexpr_t res, const ca_t x, ulong flags, ca_ctx_t ctx) noexcept
25
+ int ca_set_fexpr(ca_t res, const fexpr_t expr, ca_ctx_t ctx) noexcept
26
+ void ca_print(const ca_t x, ca_ctx_t ctx) noexcept
27
+ void ca_fprint(FILE * fp, const ca_t x, ca_ctx_t ctx) noexcept
28
+ char * ca_get_str(const ca_t x, ca_ctx_t ctx) noexcept
29
+ void ca_printn(const ca_t x, slong n, ca_ctx_t ctx) noexcept
30
+ void ca_zero(ca_t res, ca_ctx_t ctx) noexcept
31
+ void ca_one(ca_t res, ca_ctx_t ctx) noexcept
32
+ void ca_neg_one(ca_t res, ca_ctx_t ctx) noexcept
33
+ void ca_i(ca_t res, ca_ctx_t ctx) noexcept
34
+ void ca_neg_i(ca_t res, ca_ctx_t ctx) noexcept
35
+ void ca_pi(ca_t res, ca_ctx_t ctx) noexcept
36
+ void ca_pi_i(ca_t res, ca_ctx_t ctx) noexcept
37
+ void ca_euler(ca_t res, ca_ctx_t ctx) noexcept
38
+ void ca_unknown(ca_t res, ca_ctx_t ctx) noexcept
39
+ void ca_undefined(ca_t res, ca_ctx_t ctx) noexcept
40
+ void ca_uinf(ca_t res, ca_ctx_t ctx) noexcept
41
+ void ca_pos_inf(ca_t res, ca_ctx_t ctx) noexcept
42
+ void ca_neg_inf(ca_t res, ca_ctx_t ctx) noexcept
43
+ void ca_pos_i_inf(ca_t res, ca_ctx_t ctx) noexcept
44
+ void ca_neg_i_inf(ca_t res, ca_ctx_t ctx) noexcept
45
+ void ca_set(ca_t res, const ca_t x, ca_ctx_t ctx) noexcept
46
+ void ca_set_si(ca_t res, slong v, ca_ctx_t ctx) noexcept
47
+ void ca_set_ui(ca_t res, ulong v, ca_ctx_t ctx) noexcept
48
+ void ca_set_fmpz(ca_t res, const fmpz_t v, ca_ctx_t ctx) noexcept
49
+ void ca_set_fmpq(ca_t res, const fmpq_t v, ca_ctx_t ctx) noexcept
50
+ void ca_set_d(ca_t res, double x, ca_ctx_t ctx) noexcept
51
+ void ca_set_d_d(ca_t res, double x, double y, ca_ctx_t ctx) noexcept
52
+ void ca_transfer(ca_t res, ca_ctx_t res_ctx, const ca_t src, ca_ctx_t src_ctx) noexcept
53
+ void ca_set_qqbar(ca_t res, const qqbar_t x, ca_ctx_t ctx) noexcept
54
+ int ca_get_fmpz(fmpz_t res, const ca_t x, ca_ctx_t ctx) noexcept
55
+ int ca_get_fmpq(fmpq_t res, const ca_t x, ca_ctx_t ctx) noexcept
56
+ int ca_get_qqbar(qqbar_t res, const ca_t x, ca_ctx_t ctx) noexcept
57
+ int ca_can_evaluate_qqbar(const ca_t x, ca_ctx_t ctx) noexcept
58
+ void ca_randtest_rational(ca_t res, flint_rand_t state, slong bits, ca_ctx_t ctx) noexcept
59
+ void ca_randtest(ca_t res, flint_rand_t state, slong depth, slong bits, ca_ctx_t ctx) noexcept
60
+ void ca_randtest_special(ca_t res, flint_rand_t state, slong depth, slong bits, ca_ctx_t ctx) noexcept
61
+ void ca_randtest_same_nf(ca_t res, flint_rand_t state, const ca_t x, slong bits, slong den_bits, ca_ctx_t ctx) noexcept
62
+ bint ca_equal_repr(const ca_t x, const ca_t y, ca_ctx_t ctx) noexcept
63
+ int ca_cmp_repr(const ca_t x, const ca_t y, ca_ctx_t ctx) noexcept
64
+ ulong ca_hash_repr(const ca_t x, ca_ctx_t ctx) noexcept
65
+ bint ca_is_unknown(const ca_t x, ca_ctx_t ctx) noexcept
66
+ bint ca_is_special(const ca_t x, ca_ctx_t ctx) noexcept
67
+ bint ca_is_qq_elem(const ca_t x, ca_ctx_t ctx) noexcept
68
+ bint ca_is_qq_elem_zero(const ca_t x, ca_ctx_t ctx) noexcept
69
+ bint ca_is_qq_elem_one(const ca_t x, ca_ctx_t ctx) noexcept
70
+ bint ca_is_qq_elem_integer(const ca_t x, ca_ctx_t ctx) noexcept
71
+ bint ca_is_nf_elem(const ca_t x, ca_ctx_t ctx) noexcept
72
+ bint ca_is_cyclotomic_nf_elem(slong * p, ulong * q, const ca_t x, ca_ctx_t ctx) noexcept
73
+ bint ca_is_generic_elem(const ca_t x, ca_ctx_t ctx) noexcept
74
+ truth_t ca_check_is_number(const ca_t x, ca_ctx_t ctx) noexcept
75
+ truth_t ca_check_is_zero(const ca_t x, ca_ctx_t ctx) noexcept
76
+ truth_t ca_check_is_one(const ca_t x, ca_ctx_t ctx) noexcept
77
+ truth_t ca_check_is_neg_one(const ca_t x, ca_ctx_t ctx) noexcept
78
+ truth_t ca_check_is_i(const ca_t x, ca_ctx_t ctx) noexcept
79
+ truth_t ca_check_is_neg_i(const ca_t x, ca_ctx_t ctx) noexcept
80
+ truth_t ca_check_is_algebraic(const ca_t x, ca_ctx_t ctx) noexcept
81
+ truth_t ca_check_is_rational(const ca_t x, ca_ctx_t ctx) noexcept
82
+ truth_t ca_check_is_integer(const ca_t x, ca_ctx_t ctx) noexcept
83
+ truth_t ca_check_is_real(const ca_t x, ca_ctx_t ctx) noexcept
84
+ truth_t ca_check_is_negative_real(const ca_t x, ca_ctx_t ctx) noexcept
85
+ truth_t ca_check_is_imaginary(const ca_t x, ca_ctx_t ctx) noexcept
86
+ truth_t ca_check_is_undefined(const ca_t x, ca_ctx_t ctx) noexcept
87
+ truth_t ca_check_is_infinity(const ca_t x, ca_ctx_t ctx) noexcept
88
+ truth_t ca_check_is_uinf(const ca_t x, ca_ctx_t ctx) noexcept
89
+ truth_t ca_check_is_signed_inf(const ca_t x, ca_ctx_t ctx) noexcept
90
+ truth_t ca_check_is_pos_inf(const ca_t x, ca_ctx_t ctx) noexcept
91
+ truth_t ca_check_is_neg_inf(const ca_t x, ca_ctx_t ctx) noexcept
92
+ truth_t ca_check_is_pos_i_inf(const ca_t x, ca_ctx_t ctx) noexcept
93
+ truth_t ca_check_is_neg_i_inf(const ca_t x, ca_ctx_t ctx) noexcept
94
+ truth_t ca_check_equal(const ca_t x, const ca_t y, ca_ctx_t ctx) noexcept
95
+ truth_t ca_check_lt(const ca_t x, const ca_t y, ca_ctx_t ctx) noexcept
96
+ truth_t ca_check_le(const ca_t x, const ca_t y, ca_ctx_t ctx) noexcept
97
+ truth_t ca_check_gt(const ca_t x, const ca_t y, ca_ctx_t ctx) noexcept
98
+ truth_t ca_check_ge(const ca_t x, const ca_t y, ca_ctx_t ctx) noexcept
99
+ void ca_merge_fields(ca_t resx, ca_t resy, const ca_t x, const ca_t y, ca_ctx_t ctx) noexcept
100
+ void ca_condense_field(ca_t res, ca_ctx_t ctx) noexcept
101
+ ca_ext_ptr ca_is_gen_as_ext(const ca_t x, ca_ctx_t ctx) noexcept
102
+ void ca_neg(ca_t res, const ca_t x, ca_ctx_t ctx) noexcept
103
+ void ca_add_fmpq(ca_t res, const ca_t x, const fmpq_t y, ca_ctx_t ctx) noexcept
104
+ void ca_add_fmpz(ca_t res, const ca_t x, const fmpz_t y, ca_ctx_t ctx) noexcept
105
+ void ca_add_ui(ca_t res, const ca_t x, ulong y, ca_ctx_t ctx) noexcept
106
+ void ca_add_si(ca_t res, const ca_t x, slong y, ca_ctx_t ctx) noexcept
107
+ void ca_add(ca_t res, const ca_t x, const ca_t y, ca_ctx_t ctx) noexcept
108
+ void ca_sub_fmpq(ca_t res, const ca_t x, const fmpq_t y, ca_ctx_t ctx) noexcept
109
+ void ca_sub_fmpz(ca_t res, const ca_t x, const fmpz_t y, ca_ctx_t ctx) noexcept
110
+ void ca_sub_ui(ca_t res, const ca_t x, ulong y, ca_ctx_t ctx) noexcept
111
+ void ca_sub_si(ca_t res, const ca_t x, slong y, ca_ctx_t ctx) noexcept
112
+ void ca_fmpq_sub(ca_t res, const fmpq_t x, const ca_t y, ca_ctx_t ctx) noexcept
113
+ void ca_fmpz_sub(ca_t res, const fmpz_t x, const ca_t y, ca_ctx_t ctx) noexcept
114
+ void ca_ui_sub(ca_t res, ulong x, const ca_t y, ca_ctx_t ctx) noexcept
115
+ void ca_si_sub(ca_t res, slong x, const ca_t y, ca_ctx_t ctx) noexcept
116
+ void ca_sub(ca_t res, const ca_t x, const ca_t y, ca_ctx_t ctx) noexcept
117
+ void ca_mul_fmpq(ca_t res, const ca_t x, const fmpq_t y, ca_ctx_t ctx) noexcept
118
+ void ca_mul_fmpz(ca_t res, const ca_t x, const fmpz_t y, ca_ctx_t ctx) noexcept
119
+ void ca_mul_ui(ca_t res, const ca_t x, ulong y, ca_ctx_t ctx) noexcept
120
+ void ca_mul_si(ca_t res, const ca_t x, slong y, ca_ctx_t ctx) noexcept
121
+ void ca_mul(ca_t res, const ca_t x, const ca_t y, ca_ctx_t ctx) noexcept
122
+ void ca_inv(ca_t res, const ca_t x, ca_ctx_t ctx) noexcept
123
+ void ca_fmpq_div(ca_t res, const fmpq_t x, const ca_t y, ca_ctx_t ctx) noexcept
124
+ void ca_fmpz_div(ca_t res, const fmpz_t x, const ca_t y, ca_ctx_t ctx) noexcept
125
+ void ca_ui_div(ca_t res, ulong x, const ca_t y, ca_ctx_t ctx) noexcept
126
+ void ca_si_div(ca_t res, slong x, const ca_t y, ca_ctx_t ctx) noexcept
127
+ void ca_div_fmpq(ca_t res, const ca_t x, const fmpq_t y, ca_ctx_t ctx) noexcept
128
+ void ca_div_fmpz(ca_t res, const ca_t x, const fmpz_t y, ca_ctx_t ctx) noexcept
129
+ void ca_div_ui(ca_t res, const ca_t x, ulong y, ca_ctx_t ctx) noexcept
130
+ void ca_div_si(ca_t res, const ca_t x, slong y, ca_ctx_t ctx) noexcept
131
+ void ca_div(ca_t res, const ca_t x, const ca_t y, ca_ctx_t ctx) noexcept
132
+ void ca_dot(ca_t res, const ca_t initial, int subtract, ca_srcptr x, slong xstep, ca_srcptr y, slong ystep, slong len, ca_ctx_t ctx) noexcept
133
+ void ca_fmpz_poly_evaluate(ca_t res, const fmpz_poly_t poly, const ca_t x, ca_ctx_t ctx) noexcept
134
+ void ca_fmpq_poly_evaluate(ca_t res, const fmpq_poly_t poly, const ca_t x, ca_ctx_t ctx) noexcept
135
+ void ca_fmpz_mpoly_evaluate_horner(ca_t res, const fmpz_mpoly_t f, ca_srcptr x, const fmpz_mpoly_ctx_t mctx, ca_ctx_t ctx) noexcept
136
+ void ca_fmpz_mpoly_evaluate_iter(ca_t res, const fmpz_mpoly_t f, ca_srcptr x, const fmpz_mpoly_ctx_t mctx, ca_ctx_t ctx) noexcept
137
+ void ca_fmpz_mpoly_evaluate(ca_t res, const fmpz_mpoly_t f, ca_srcptr x, const fmpz_mpoly_ctx_t mctx, ca_ctx_t ctx) noexcept
138
+ void ca_fmpz_mpoly_q_evaluate(ca_t res, const fmpz_mpoly_q_t f, ca_srcptr x, const fmpz_mpoly_ctx_t mctx, ca_ctx_t ctx) noexcept
139
+ void ca_fmpz_mpoly_q_evaluate_no_division_by_zero(ca_t res, const fmpz_mpoly_q_t f, ca_srcptr x, const fmpz_mpoly_ctx_t mctx, ca_ctx_t ctx) noexcept
140
+ void ca_inv_no_division_by_zero(ca_t res, const ca_t x, ca_ctx_t ctx) noexcept
141
+ void ca_sqr(ca_t res, const ca_t x, ca_ctx_t ctx) noexcept
142
+ void ca_pow_fmpq(ca_t res, const ca_t x, const fmpq_t y, ca_ctx_t ctx) noexcept
143
+ void ca_pow_fmpz(ca_t res, const ca_t x, const fmpz_t y, ca_ctx_t ctx) noexcept
144
+ void ca_pow_ui(ca_t res, const ca_t x, ulong y, ca_ctx_t ctx) noexcept
145
+ void ca_pow_si(ca_t res, const ca_t x, slong y, ca_ctx_t ctx) noexcept
146
+ void ca_pow(ca_t res, const ca_t x, const ca_t y, ca_ctx_t ctx) noexcept
147
+ void ca_pow_si_arithmetic(ca_t res, const ca_t x, slong n, ca_ctx_t ctx) noexcept
148
+ void ca_sqrt_inert(ca_t res, const ca_t x, ca_ctx_t ctx) noexcept
149
+ void ca_sqrt_nofactor(ca_t res, const ca_t x, ca_ctx_t ctx) noexcept
150
+ void ca_sqrt_factor(ca_t res, const ca_t x, ulong flags, ca_ctx_t ctx) noexcept
151
+ void ca_sqrt(ca_t res, const ca_t x, ca_ctx_t ctx) noexcept
152
+ void ca_sqrt_ui(ca_t res, ulong n, ca_ctx_t ctx) noexcept
153
+ void ca_abs(ca_t res, const ca_t x, ca_ctx_t ctx) noexcept
154
+ void ca_sgn(ca_t res, const ca_t x, ca_ctx_t ctx) noexcept
155
+ void ca_csgn(ca_t res, const ca_t x, ca_ctx_t ctx) noexcept
156
+ void ca_arg(ca_t res, const ca_t x, ca_ctx_t ctx) noexcept
157
+ void ca_re(ca_t res, const ca_t x, ca_ctx_t ctx) noexcept
158
+ void ca_im(ca_t res, const ca_t x, ca_ctx_t ctx) noexcept
159
+ void ca_conj_deep(ca_t res, const ca_t x, ca_ctx_t ctx) noexcept
160
+ void ca_conj_shallow(ca_t res, const ca_t x, ca_ctx_t ctx) noexcept
161
+ void ca_conj(ca_t res, const ca_t x, ca_ctx_t ctx) noexcept
162
+ void ca_floor(ca_t res, const ca_t x, ca_ctx_t ctx) noexcept
163
+ void ca_ceil(ca_t res, const ca_t x, ca_ctx_t ctx) noexcept
164
+ void ca_exp(ca_t res, const ca_t x, ca_ctx_t ctx) noexcept
165
+ void ca_log(ca_t res, const ca_t x, ca_ctx_t ctx) noexcept
166
+ void ca_sin_cos_exponential(ca_t res1, ca_t res2, const ca_t x, ca_ctx_t ctx) noexcept
167
+ void ca_sin_cos_direct(ca_t res1, ca_t res2, const ca_t x, ca_ctx_t ctx) noexcept
168
+ void ca_sin_cos_tangent(ca_t res1, ca_t res2, const ca_t x, ca_ctx_t ctx) noexcept
169
+ void ca_sin_cos(ca_t res1, ca_t res2, const ca_t x, ca_ctx_t ctx) noexcept
170
+ void ca_sin(ca_t res, const ca_t x, ca_ctx_t ctx) noexcept
171
+ void ca_cos(ca_t res, const ca_t x, ca_ctx_t ctx) noexcept
172
+ void ca_tan_sine_cosine(ca_t res, const ca_t x, ca_ctx_t ctx) noexcept
173
+ void ca_tan_exponential(ca_t res, const ca_t x, ca_ctx_t ctx) noexcept
174
+ void ca_tan_direct(ca_t res, const ca_t x, ca_ctx_t ctx) noexcept
175
+ void ca_tan(ca_t res, const ca_t x, ca_ctx_t ctx) noexcept
176
+ void ca_cot(ca_t res, const ca_t x, ca_ctx_t ctx) noexcept
177
+ void ca_atan_logarithm(ca_t res, const ca_t x, ca_ctx_t ctx) noexcept
178
+ void ca_atan_direct(ca_t res, const ca_t x, ca_ctx_t ctx) noexcept
179
+ void ca_atan(ca_t res, const ca_t x, ca_ctx_t ctx) noexcept
180
+ void ca_asin_logarithm(ca_t res, const ca_t x, ca_ctx_t ctx) noexcept
181
+ void ca_acos_logarithm(ca_t res, const ca_t x, ca_ctx_t ctx) noexcept
182
+ void ca_asin_direct(ca_t res, const ca_t x, ca_ctx_t ctx) noexcept
183
+ void ca_acos_direct(ca_t res, const ca_t x, ca_ctx_t ctx) noexcept
184
+ void ca_asin(ca_t res, const ca_t x, ca_ctx_t ctx) noexcept
185
+ void ca_acos(ca_t res, const ca_t x, ca_ctx_t ctx) noexcept
186
+ void ca_gamma(ca_t res, const ca_t x, ca_ctx_t ctx) noexcept
187
+ void ca_erf(ca_t res, const ca_t x, ca_ctx_t ctx) noexcept
188
+ void ca_erfc(ca_t res, const ca_t x, ca_ctx_t ctx) noexcept
189
+ void ca_erfi(ca_t res, const ca_t x, ca_ctx_t ctx) noexcept
190
+ void ca_get_acb_raw(acb_t res, const ca_t x, slong prec, ca_ctx_t ctx) noexcept
191
+ void ca_get_acb(acb_t res, const ca_t x, slong prec, ca_ctx_t ctx) noexcept
192
+ void ca_get_acb_accurate_parts(acb_t res, const ca_t x, slong prec, ca_ctx_t ctx) noexcept
193
+ char * ca_get_decimal_str(const ca_t x, slong digits, ulong flags, ca_ctx_t ctx) noexcept
194
+ void ca_rewrite_complex_normal_form(ca_t res, const ca_t x, int deep, ca_ctx_t ctx) noexcept
195
+ void ca_factor_init(ca_factor_t fac, ca_ctx_t ctx) noexcept
196
+ void ca_factor_clear(ca_factor_t fac, ca_ctx_t ctx) noexcept
197
+ void ca_factor_one(ca_factor_t fac, ca_ctx_t ctx) noexcept
198
+ void ca_factor_print(const ca_factor_t fac, ca_ctx_t ctx) noexcept
199
+ void ca_factor_insert(ca_factor_t fac, const ca_t base, const ca_t exp, ca_ctx_t ctx) noexcept
200
+ void ca_factor_get_ca(ca_t res, const ca_factor_t fac, ca_ctx_t ctx) noexcept
201
+ void ca_factor(ca_factor_t res, const ca_t x, ulong flags, ca_ctx_t ctx) noexcept
202
+ void _ca_make_field_element(ca_t x, ca_field_srcptr new_index, ca_ctx_t ctx) noexcept
203
+ void _ca_make_fmpq(ca_t x, ca_ctx_t ctx) noexcept
@@ -0,0 +1,34 @@
1
+ # sage_setup: distribution = sagemath-flint
2
+ # distutils: libraries = flint
3
+ # distutils: depends = flint/ca_ext.h
4
+
5
+ ################################################################################
6
+ # This file is auto-generated by the script
7
+ # SAGE_ROOT/src/sage_setup/autogen/flint_autogen.py.
8
+ # From the commit 3e2c3a3e091106a25ca9c6fba28e02f2cbcd654a
9
+ # Do not modify by hand! Fix and rerun the script instead.
10
+ ################################################################################
11
+
12
+ from libc.stdio cimport FILE
13
+ from sage.libs.gmp.types cimport *
14
+ from sage.libs.mpfr.types cimport *
15
+ from sage.libs.flint.types cimport *
16
+
17
+ cdef extern from "flint_wrap.h":
18
+ void ca_ext_init_qqbar(ca_ext_t res, const qqbar_t x, ca_ctx_t ctx) noexcept
19
+ void ca_ext_init_const(ca_ext_t res, calcium_func_code func, ca_ctx_t ctx) noexcept
20
+ void ca_ext_init_fx(ca_ext_t res, calcium_func_code func, const ca_t x, ca_ctx_t ctx) noexcept
21
+ void ca_ext_init_fxy(ca_ext_t res, calcium_func_code func, const ca_t x, const ca_t y, ca_ctx_t ctx) noexcept
22
+ void ca_ext_init_fxn(ca_ext_t res, calcium_func_code func, ca_srcptr x, slong nargs, ca_ctx_t ctx) noexcept
23
+ void ca_ext_init_set(ca_ext_t res, const ca_ext_t x, ca_ctx_t ctx) noexcept
24
+ void ca_ext_clear(ca_ext_t res, ca_ctx_t ctx) noexcept
25
+ slong ca_ext_nargs(const ca_ext_t x, ca_ctx_t ctx) noexcept
26
+ void ca_ext_get_arg(ca_t res, const ca_ext_t x, slong i, ca_ctx_t ctx) noexcept
27
+ ulong ca_ext_hash(const ca_ext_t x, ca_ctx_t ctx) noexcept
28
+ bint ca_ext_equal_repr(const ca_ext_t x, const ca_ext_t y, ca_ctx_t ctx) noexcept
29
+ int ca_ext_cmp_repr(const ca_ext_t x, const ca_ext_t y, ca_ctx_t ctx) noexcept
30
+ void ca_ext_print(const ca_ext_t x, ca_ctx_t ctx) noexcept
31
+ void ca_ext_get_acb_raw(acb_t res, ca_ext_t x, slong prec, ca_ctx_t ctx) noexcept
32
+ void ca_ext_cache_init(ca_ext_cache_t cache, ca_ctx_t ctx) noexcept
33
+ void ca_ext_cache_clear(ca_ext_cache_t cache, ca_ctx_t ctx) noexcept
34
+ ca_ext_ptr ca_ext_cache_insert(ca_ext_cache_t cache, const ca_ext_t x, ca_ctx_t ctx) noexcept
@@ -0,0 +1,32 @@
1
+ # sage_setup: distribution = sagemath-flint
2
+ # distutils: libraries = flint
3
+ # distutils: depends = flint/ca_field.h
4
+
5
+ ################################################################################
6
+ # This file is auto-generated by the script
7
+ # SAGE_ROOT/src/sage_setup/autogen/flint_autogen.py.
8
+ # From the commit 3e2c3a3e091106a25ca9c6fba28e02f2cbcd654a
9
+ # Do not modify by hand! Fix and rerun the script instead.
10
+ ################################################################################
11
+
12
+ from libc.stdio cimport FILE
13
+ from sage.libs.gmp.types cimport *
14
+ from sage.libs.mpfr.types cimport *
15
+ from sage.libs.flint.types cimport *
16
+
17
+ cdef extern from "flint_wrap.h":
18
+ void ca_field_init_qq(ca_field_t K, ca_ctx_t ctx) noexcept
19
+ void ca_field_init_nf(ca_field_t K, const qqbar_t x, ca_ctx_t ctx) noexcept
20
+ void ca_field_init_const(ca_field_t K, calcium_func_code func, ca_ctx_t ctx) noexcept
21
+ void ca_field_init_fx(ca_field_t K, calcium_func_code func, const ca_t x, ca_ctx_t ctx) noexcept
22
+ void ca_field_init_fxy(ca_field_t K, calcium_func_code func, const ca_t x, const ca_t y, ca_ctx_t ctx) noexcept
23
+ void ca_field_init_multi(ca_field_t K, slong len, ca_ctx_t ctx) noexcept
24
+ void ca_field_set_ext(ca_field_t K, slong i, ca_ext_srcptr x_index, ca_ctx_t ctx) noexcept
25
+ void ca_field_clear(ca_field_t K, ca_ctx_t ctx) noexcept
26
+ void ca_field_print(const ca_field_t K, ca_ctx_t ctx) noexcept
27
+ void ca_field_build_ideal(ca_field_t K, ca_ctx_t ctx) noexcept
28
+ void ca_field_build_ideal_erf(ca_field_t K, ca_ctx_t ctx) noexcept
29
+ int ca_field_cmp(const ca_field_t K1, const ca_field_t K2, ca_ctx_t ctx) noexcept
30
+ void ca_field_cache_init(ca_field_cache_t cache, ca_ctx_t ctx) noexcept
31
+ void ca_field_cache_clear(ca_field_cache_t cache, ca_ctx_t ctx) noexcept
32
+ ca_field_ptr ca_field_cache_insert_ext(ca_field_cache_t cache, ca_ext_struct ** x, slong len, ca_ctx_t ctx) noexcept