Closed xcaruso closed 6 years ago
Changed work issues from failing unit tests to failing unit tests, clarify meaning of integral, talk about precision
Xavier: Could you write something about what it means for an entry on the diagonal to be zero (in the field case)? I mean it is somewhat unclear since we compute with inexact elements.
doc does not build
+[dochtml] [matrices ] docstring of sage.matrix.matrix2.Matrix.smith_form:26: WARNING: Bullet list ends without a blank line; unexpected unindent.
+[dochtml] [matrices ] docstring of sage.matrix.matrix2.Matrix.smith_form:29: WARNING: Bullet list ends without a blank line; unexpected unindent.
The issue is in the INPUT field there.
Changed branch from u/saraedum/padic_smith to u/aly.deines/padic_smith
Changed to needs work because of above issues.
ping - I could really use this p-adic smith form. (over ZZp
)
Need help? (not an expert though)
Changed branch from u/aly.deines/padic_smith to public/23450
Branch pushed to git repo; I updated commit sha1. New commits:
cf85a34 | Merge branch 'public/23450' of ssh://trac.sagemath.org/sage into t/23450/padic_smith |
Branch pushed to git repo; I updated commit sha1. New commits:
7ad838a | Remove _get_matrix_class that was inadvertently added in a merge |
Branch pushed to git repo; I updated commit sha1. New commits:
b5863a1 | Add newline back in from fix to matrix_space.py |
Branch pushed to git repo; I updated commit sha1. New commits:
777f494 | Remove the tracks_precision method and update the p-adic smith form to be able to deal with lattice elements |
Branch pushed to git repo; I updated commit sha1. New commits:
d78a1d5 | Add exact parameter to _matrix_smith_form, fix precision behavior and allow integral=True for non-padic matrices |
Changed author from Xavier Caruso, Julian Rüth to Xavier Caruso, Julian Rüth, David Roe
If Xavier is happy with my changes, I'm happy to give this positive review.
Changed reviewer from Julian Rüth to Julian Rüth, David Roe
Branch pushed to git repo; I updated commit sha1. New commits:
f7d4e38 | lift_to_precision() was missing at some point |
Branch pushed to git repo; I updated commit sha1. New commits:
0d46aa5 | Add a test: Smith form of the zero matrix |
I've fixed a small issue with precision.
Now, everything seems fine to me. I let you give a positive review if you're OK (and if the patchbot is happy)
Patchbot is green, so positive review.
Changed work issues from failing unit tests, clarify meaning of integral, talk about precision to none
Tests fail
UnboundLocalError: local variable 'precM' referenced before assignment
Let me add a bit of details, 6 doctests fails
sage -t --long /usr/lib64/python2.7/site-packages/sage/rings/padics/padic_lattice_element.py # 4 doctests failed
sage -t --long /usr/lib64/python2.7/site-packages/sage/rings/padics/padic_base_leaves.py # 2 doctests failed
and they all fail the same way
File "/usr/lib64/python2.7/site-packages/sage/rings/padics/padic_base_leaves.py", line 879, in sage.rings.padics.padic_base_leaves.pAdicRingLattice.__init__
Failed example:
TestSuite(R).run(skip='_test_teichmuller')
Expected nothing
Got:
Failure in _test_matrix_smith:
Traceback (most recent call last):
File "/usr/lib64/python2.7/site-packages/sage/misc/sage_unittest.py", line 294, in run
test_method(tester = tester)
File "/usr/lib64/python2.7/site-packages/sage/rings/padics/local_generic.py", line 1248, in _test_matrix_smith
S,U,V = M.smith_form(integral=base)
File "sage/matrix/matrix2.pyx", line 13416, in sage.matrix.matrix2.Matrix.smith_form (/dev/shm/portage/sci-mathematics/sage-9999/work/sage-9999/src-python2_7/build/cythonized/sage/matrix/matrix2.c:96167)
return R._matrix_smith_form(self, transformation=transformation, integral=integral, exact=exact)
File "/usr/lib64/python2.7/site-packages/sage/rings/padics/local_generic.py", line 1148, in _matrix_smith_form
if inexact_ring and not allzero and val >= precM:
UnboundLocalError: local variable 'precM' referenced before assignment
------------------------------------------------------------
The following tests failed: _test_matrix_smith
ending in local_generic.py
.
Should be fixed.
The patchbots continue to be noisy, but this looks good to me.
Changed branch from public/23450 to e6f54bb
Currently Smith form are not implemented over inexact rings.
This ticket provides a (currently unoptimized) implementation of Smith normal form over complete discrete valuation rings/fields (e.g. p-adic rings/fields).
CC: @roed314 @saraedum @sagetrac-TristanVaccon @kedlaya
Component: padics
Keywords: sd87
Author: Xavier Caruso, Julian Rüth, David Roe
Branch/Commit:
e6f54bb
Reviewer: Julian Rüth, David Roe
Issue created by migration from https://trac.sagemath.org/ticket/23450