-
Notifications
You must be signed in to change notification settings - Fork 162
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Up to now, `DecompositionInt` and `Decomposition` used `Print` for showing a message whenever a new prime had to be chosen because the matrix in question was singular modulo the current prime. Meanwhile I have several real-world examples where this happens, which I want to use in package tests, and I think it is better to omit these messages by default, that is, to use `Info` instead of `Print`.
- Loading branch information
1 parent
8399021
commit 056e4d8
Showing
2 changed files
with
15 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,21 @@ | ||
#@local | ||
#@local A | ||
gap> START_TEST("zlattice.tst"); | ||
|
||
# 'Decomposition' | ||
gap> A:= [ [ 82, 1 ], [ -1, 1 ] ];; | ||
gap> SetInfoLevel( InfoZLattice, 0 ); | ||
gap> Decomposition( A, [ [ 82, 1 ] ], 1 ); | ||
[ [ 1, 0 ] ] | ||
gap> SetInfoLevel( InfoZLattice, 1 ); | ||
gap> Decomposition( A, [ [ 82, 1 ] ], 1 ); | ||
#I DecompositionInt: choosing new prime 89 | ||
[ [ 1, 0 ] ] | ||
gap> SetInfoLevel( InfoZLattice, 0 ); | ||
|
||
# trivial cases of `LLLReducedBasis' | ||
gap> LLLReducedBasis( [ ] ); | ||
rec( B := [ ], basis := [ ], mue := [ ] ) | ||
gap> LLLReducedBasis( [ [ 0, 0 ], [ 0, 0 ] ], "linearcomb" ); | ||
rec( B := [ ], basis := [ ], mue := [ ], | ||
relations := [ [ 1, 0 ], [ 0, 1 ] ], transformation := [ ] ) | ||
gap> STOP_TEST( "zlattice.tst", 1); | ||
gap> STOP_TEST( "zlattice.tst" ); |