Opened 4 years ago

#23717 new defect

randomize on matrices should be independent of the implementation

Reported by: vdelecroix Owned by:
Priority: major Milestone: sage-8.1
Component: linear algebra Keywords: days88
Cc: Merged in:
Authors: Reviewers:
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Status badges

Description

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.

Change History (0)

Note: See TracTickets for help on using tickets.