check_polynomial.cc File Reference

test for polynomial arithmetic (performance, correctness) More...

#include <sys/times.h>
#include "modulo.cc"
#include "polynomial.cc"

Include dependency graph for check_polynomial.cc:

Go to the source code of this file.

Defines

#define USER_GMP_WRAP

Functions

double difftimes (clock_t t1, clock_t t0)
bool do_check (const int maxk, const int anzPoints, const mpz_t m)
bool performance_check (const int maxk, const int anzPoints, const mpz_t m)
int main ()


Detailed Description

test for polynomial arithmetic (performance, correctness)

Definition in file check_polynomial.cc.


Define Documentation

#define USER_GMP_WRAP

Definition at line 13 of file check_polynomial.cc.


Function Documentation

double difftimes ( clock_t  t1,
clock_t  t0 
)

Definition at line 23 of file check_polynomial.cc.

Referenced by do_check(), performance_check(), and Cprocess_clients::process_data_stream().

bool do_check ( const int  maxk,
const int  anzPoints,
const mpz_t  m 
)

Definition at line 30 of file check_polynomial.cc.

References cerr, cout, difftimes(), endl(), polynomial::eval(), exit(), mpz_clear(), mpz_cmp(), mpz_init(), mpz_mod(), mpz_out_str(), mpz_rrandomb(), mpz_sizeinbase(), polynomial::multipoint_eval(), and Polynom.

Referenced by main().

Here is the call graph for this function:

int main (  ) 

Definition at line 147 of file check_polynomial.cc.

References cout, do_check(), endl(), mpz_add_ui(), mpz_clear(), mpz_init(), mpz_pow_ui(), mpz_set_str(), mpz_set_ui(), and performance_check().

Here is the call graph for this function:

bool performance_check ( const int  maxk,
const int  anzPoints,
const mpz_t  m 
)

Definition at line 107 of file check_polynomial.cc.

References cout, difftimes(), endl(), mpz_clear(), mpz_init(), mpz_mod(), mpz_rrandomb(), mpz_sizeinbase(), polynomial::multipoint_eval(), and Polynom.

Referenced by main().

Here is the call graph for this function:


Generated on Wed Nov 7 23:29:29 2007 for Qsieve by  doxygen 1.5.4