Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
22970: derandomize tests in free_module_integer.py
Browse files Browse the repository at this point in the history
  • Loading branch information
videlec committed May 28, 2017
1 parent fad1b0d commit b68993f
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/sage/modules/free_module_integer.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,7 @@ def IntegerLattice(basis, lll_reduce=True):
sage: K.<a> = CyclotomicField(17)
sage: O = K.ring_of_integers()
sage: f = O.random_element(); f
-a^15 + a^13 + 4*a^12 - 12*a^11 - 256*a^10 + a^9 - a^7 - 4*a^6 + a^5 + 210*a^4 + 2*a^3 - 2*a^2 + 2*a - 2
sage: f = O(-a^15 + a^13 + 4*a^12 - 12*a^11 - 256*a^10 + a^9 - a^7 - 4*a^6 + a^5 + 210*a^4 + 2*a^3 - 2*a^2 + 2*a - 2)
sage: from sage.modules.free_module_integer import IntegerLattice
sage: IntegerLattice(f)
Free module of degree 16 and rank 16 over Integer Ring
Expand Down Expand Up @@ -268,9 +266,7 @@ def __init__(self, ambient, basis, check=True, echelonize=False,
sage: K.<a> = NumberField(x^8+1)
sage: O = K.ring_of_integers()
sage: f = O.random_element(); f
a^7 - a^6 + 4*a^5 - a^4 + a^3 + 1
sage: f = O(a^7 - a^6 + 4*a^5 - a^4 + a^3 + 1)
sage: IntegerLattice(f)
Free module of degree 8 and rank 8 over Integer Ring
User basis matrix:
Expand Down

0 comments on commit b68993f

Please sign in to comment.