New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
p-adic precision in vector multiplication #8198
Comments
comment:1
I must admit that I have not searched through the tracs to see if this is a duplicate. Sorry. Resolving the bug would result in the resolution of #4656, too, I believe. |
comment:2
I found this bug also, while working on #9457. After a fair bit of struggling with elliptic curve code, I now think this is a significant part of the problem. I noticed the following also; I can't tell if it's the same bug or not.
|
comment:3
Replying to @nilesjohnson:
oh, this seems to be the same as #4656 |
comment:4
I narrowed down the last issue above. (vector calls Sequence which calls list):
again the element is set to zero. The problem here is different than the original case. In fact list(x) should raise an error, just like list(0) does.
works correctly. So this is really about matrix multiplication. |
comment:7
Note the very last bug, is not longer a problem in 6.1 as |
comment:8
I don't even understand where vector * matrix multiplication is implemented... |
comment:10
Replying to @categorie:
In |
Author: Peter Bruin |
Commit: |
Reviewer: Chris Wuthrich |
comment:12
Good. All tests pass. I was not certain about the changes as I am not completely fluent in cython. Having read documentations, I think they make sense. I tested the speed in a few very limited cases and it does not seem to me that the new code is slower or faster (except of course when the field is Qp). Thanks for the help. |
Changed branch from u/pbruin/ticket/8198-matrix_vector_multiplication to |
* develop: (148 commits) Updated Sage version to 6.2.beta8 Fixed failing doctests. clean empty directories fix crun doctest Solaris does not have -a option for cp. Use -r. make our own prompt stripper run before the IPython one Add comment about not picking up Win64 as OS on Cygwin64. Corrected BasisExchangeMatroid.dependent_r_sets(r) to enumerate all r-sets if r > full rank. BasisExchangeMatroid.independent_r_sets() and .dependent_r_sets() now check if input r exceeds the full rank. Patch Python uuid module to lower side effects when it is imported. Update libpng to version 1.2.51. Update sqlite to version 3.8.4.3. Trac 15030: replace fast_float with fast_callable in 2D plotting some small changes to the documentation reviewer patch for sagemath#8198 trac sagemath#16125 corrected doctests trac sagemath#16150 better doc still trac sagemath#16150 more doc for the triangulation of the torus Fixed last bad link. I couldn't count parentheses correctly during merge resolution. ...
Trying to resolve #4656, I found the following unpleasant bug.
this looks good :
But when multiplied with the identity matrix the precision is lost
This causes things like
This is an even worse example, which could be a different bug
CC: @nilesjohnson @jpflori
Component: linear algebra
Keywords: padics vector
Author: Peter Bruin
Branch/Commit:
41cbe4c
Reviewer: Chris Wuthrich
Issue created by migration from https://trac.sagemath.org/ticket/8198
The text was updated successfully, but these errors were encountered: