test_lll.cpp File Reference
#include <cstring>
#include <fplll.h>
#include <test_utils.h>

Macros

#define TESTDATADIR   ".."
 

Functions

template<class ZT >
int test_test (ZZ_mat< ZT > &A)
 Test the tester. More...
 
template<class ZT >
int test_lll (ZZ_mat< ZT > &A, LLLMethod method, FloatType float_type, int flags=LLL_DEFAULT, int prec=0)
 Test LLL reduction. More...
 
template<class ZT >
int test_filename (const char *input_filename, LLLMethod method, FloatType float_type=FT_DEFAULT, int flags=LLL_DEFAULT, int prec=0)
 Test LLL for matrix stored in file pointed to by input_filename. More...
 
template<class ZT >
int test_int_rel (int d, int b, LLLMethod method, FloatType float_type=FT_DEFAULT, int flags=LLL_DEFAULT, int prec=0)
 Construct d × (d+1) integer relations matrix with bit size b and test LLL. More...
 
int main (int, char **)
 

Macro Definition Documentation

◆ TESTDATADIR

#define TESTDATADIR   ".."

Function Documentation

◆ main()

int main ( int  ,
char **   
)

◆ test_filename()

template<class ZT >
int test_filename ( const char *  input_filename,
LLLMethod  method,
FloatType  float_type = FT_DEFAULT,
int  flags = LLL_DEFAULT,
int  prec = 0 
)

Test LLL for matrix stored in file pointed to by input_filename.

Parameters
input_filenamea path
methodLLL method to test
float_typefloating point type to test
flagsflags to use
precprecision used for is_lll_reduced
Returns
zero on success

◆ test_int_rel()

template<class ZT >
int test_int_rel ( int  d,
int  b,
LLLMethod  method,
FloatType  float_type = FT_DEFAULT,
int  flags = LLL_DEFAULT,
int  prec = 0 
)

Construct d × (d+1) integer relations matrix with bit size b and test LLL.

Parameters
ddimension
bbit size
methodLLL method to test
float_typefloating point type to test
flagsflags to use
precprecision used for is_lll_reduced
Returns
zero on success

◆ test_lll()

template<class ZT >
int test_lll ( ZZ_mat< ZT > &  A,
LLLMethod  method,
FloatType  float_type,
int  flags = LLL_DEFAULT,
int  prec = 0 
)

Test LLL reduction.

Parameters
Atest matrix
methodLLL method to test
float_typefloating point type to test
flagsflags to use
precprecision used for is_lll_reduced
Returns
zero on success.

◆ test_test()

template<class ZT >
int test_test ( ZZ_mat< ZT > &  A)

Test the tester.

Parameters
A
Returns
zero on success.