File: fplll.gi

package info (click to toggle)
gap-float 1.0.3%2Bds-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 576 kB
  • sloc: ansic: 2,162; cpp: 2,025; xml: 194; makefile: 113; sh: 1
file content (27 lines) | stat: -rw-r--r-- 852 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#############################################################################
##
#W  fplll.gi                      GAP library               Laurent Bartholdi
##
#Y  Copyright (C) 2012 Laurent Bartholdi
##
##  This file deals with fplll's implementation of LLL lattice reduction
##

#!!! implement all options, arguments etc. to control quality of reduction
InstallMethod(FPLLLReducedBasis, [IsMatrix], function(m)
    while not ForAll(m,r->IsSubset(Integers,r)) do
        Error(m," must be an integer matrix");
    od;
    return @FPLLL(m,0,true,fail);
end);

InstallMethod(FPLLLShortestVector, [IsMatrix], function(m)
    while not ForAll(m,r->IsSubset(Integers,r)) do
        Error(m," must be an integer matrix");
    od;
    return @FPLLL(m,0,true,true);
end);

#############################################################################
##
#E