Closed roed314 closed 8 years ago
Changed branch from u/roed/ticket/14304 to u/saraedum/ticket/14304
Changed keywords from none to sd59
I'm happy with the changes roed made since my last positive_review
. So from my point of view this could go back to positive_review
once somebody reviewed my few changes and if the patchbot is happy.
New commits:
f11fb44 | Merge branch 'develop' into ticket/14304 |
cce5076 | adapt to the new version of FLINT's padic_ctx_init |
994be79 | Fixed a typo in linkage to FLINT for qadics |
c4348c2 | fixed a doctest in padic factor |
I hope that this fixes all the bugs the patchbot detected.
Branch pushed to git repo; I updated commit sha1. New commits:
c7ffd25 | Fix copy() for qadic conversion maps to capped absolute rings |
needs rebase
Branch pushed to git repo; I updated commit sha1. New commits:
9fecbdd | Merge branch 'develop' into t/14304/ticket/14304 |
Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:
5ba4124 | Merge branch 'develop' into t/14304/ticket/14304 |
Branch pushed to git repo; I updated commit sha1. New commits:
2c3a710 | implement _cache_key for q-adics |
Just a few technical comments (I don't plan to formally review this):
include_dirs = [SAGE_INC + '/flint']
(just add flint/
to the path to the .h
files)__richcmp__
calling _richcmp
__hash__
which just raises TypeError
: all Element
s are now unhashable by default..pxd
files, could you move all declarations of FLINT types to sage/libs/flint/types.pxd
? try:
padic_ctx_init(self.ctx, self.fprime, 0, prec_cap, PADIC_SERIES)
except:
mpz_clear(self.top_power)
raise
given that padic_ctx_init
is a C function, how could it ever raise a Python exception? Moreover, I find it bad style to use except:
, you should be more explicit and catch except BaseException:
instead (the reason I say this is because most people write except:
by mistake).
Changed dependencies from #12555, #12173 to none
Branch pushed to git repo; I updated commit sha1. New commits:
ab07bc4 | remove unnecessary include_dirs for FLINT from module_list.py |
Branch pushed to git repo; I updated commit sha1. New commits:
52425be | Merge branch 'develop' into t/14304/ticket/14304 |
2a1f293 | remove unnecessary implementation of `__hash__` and __richcmp__ |
6fbb0d7 | fix conversion from residue field to q-adic fields |
70c780d | Merge branch 'develop' into t/14304/ticket/14304 |
Branch pushed to git repo; I updated commit sha1. New commits:
0ab73f6 | Convert to p-adic residue field if there is a coercion |
Why this change?
diff --git a/src/sage/algebras/quatalg/quaternion_algebra_element.pyx b/src/sage/algebras/quatalg/quaternion_algebra_element.pyx
index 03470ef..c5620e1 100644
--- a/src/sage/algebras/quatalg/quaternion_algebra_element.pyx
+++ b/src/sage/algebras/quatalg/quaternion_algebra_element.pyx
@@ -18,6 +18,9 @@ quaternion algebras and quaternion algebras over number fields.
# http://www.gnu.org/licenses/
#*****************************************************************************
+from sage.libs.flint.fmpz cimport *
+from sage.libs.flint.fmpz_poly cimport *
+from sage.libs.flint.ntl_interface cimport *
from sage.structure.element cimport AlgebraElement, RingElement, ModuleElement, Element
from sage.algebras.quatalg.quaternion_algebra_element cimport QuaternionAlgebraElement_abstract
from sage.rings.rational cimport Rational
There are also some strange added imports in src/sage/rings/polynomial/...
Similarly:
diff --git a/src/sage/libs/flint/ntl_interface.pxd b/src/sage/libs/flint/ntl_interface.pxd
index 7cea729..6b88b9b 100644
--- a/src/sage/libs/flint/ntl_interface.pxd
+++ b/src/sage/libs/flint/ntl_interface.pxd
@@ -2,6 +2,8 @@ from types cimport fmpz_t, fmpz_poly_t
from sage.libs.ntl.ntl_ZZ_decl cimport ZZ_c
from sage.libs.ntl.ntl_ZZX_decl cimport ZZX_c
+from sage.libs.flint.fmpz cimport fmpz_t
+from sage.libs.flint.fmpz_poly cimport fmpz_poly_t
cdef extern from "flint/NTL-interface.h":
void fmpz_poly_get_ZZX(ZZX_c output, fmpz_poly_t poly)
These imports happened because we fixed flint build errors by importing the necessary symbols. We just imported them in different places than what got into develop did. So the merge did not catch this conflict it seems. Thanks for pointing these out.
Branch pushed to git repo; I updated commit sha1. New commits:
63d90c6 | remove duplicate imports |
Branch pushed to git repo; I updated commit sha1. New commits:
d2ced66 | Fix conversion from finite rings to q-adic fields |
Dependencies: #19646
Conflicts with 6.10.beta6. If you fix this conflict, I can easily merge #19646.
Branch pushed to git repo; I updated commit sha1. New commits:
1238235 | Merge branch 'develop' into t/14304/ticket/14304 |
All doctests in rings/
now pass (have not checked with --long
.)
Changed dependencies from #19646 to none
Reimplement Qq using FLINT.
Depends on #20210
CC: @fredrik-johansson @jpflori @saraedum
Component: padics
Keywords: sd59, days71
Author: Julian Rüth, David Roe
Branch/Commit:
56b357c
Reviewer: David Roe, Julian Rüth, Aly Deines
Issue created by migration from https://trac.sagemath.org/ticket/14304