test_hlll.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_hlll (ZZ_mat< ZT > &A, LLLMethod method, FloatType float_type, int flags=LLL_DEFAULT)
 Test HLLL reduction. More...
 
template<class ZT >
int test_filename (const char *input_filename, LLLMethod method, FloatType float_type=FT_DEFAULT, int flags=LLL_DEFAULT)
 Test HLLL 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)
 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 
)

Test HLLL 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
Returns
zero on success

◆ test_hlll()

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

Test HLLL reduction.

Parameters
Atest matrix
methodLLL method to test
float_typefloating point type to test
flagsflags to use
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 
)

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
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.

Should return 0, since the at this point of the program, A is not reduced.