Skip to content
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

randomize on matrices should be independent of the implementation #23717

Open
videlec opened this issue Aug 25, 2017 · 0 comments
Open

randomize on matrices should be independent of the implementation #23717

videlec opened this issue Aug 25, 2017 · 0 comments

Comments

@videlec
Copy link
Contributor

videlec commented Aug 25, 2017

After #23706 it appears that different implementations do not provide the same randomization algorithms. This is annoying for accurate comparisons

sage: with seed(42):
....:     MatrixSpace(QQ, 2, implementation='flint').random_element()
[  -1   -1]
[-1/2    2]
sage: with seed(42):
....:     MatrixSpace(QQ, 2, implementation='gap').random_element()
[ 1/4 -4/3]
[   1    0]
sage: with seed(42):
....:     MatrixSpace(QQ, 2, implementation='generic').random_element()
[ 1/4 -4/3]
[   1    0]

The same occurs over cyclotomic field. The reason is that there is a home made randomize method in these cases.

Component: linear algebra

Keywords: days88

Issue created by migration from https://trac.sagemath.org/ticket/23717

@videlec videlec added this to the sage-8.1 milestone Aug 25, 2017
@mkoeppe mkoeppe removed this from the sage-8.1 milestone Dec 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants