NO DOC
#include <iostream>
#define GIVARO_LENSTRA
#include <givaro/givintnumtheo.h>
#include <givaro/givtimer.h>
#ifndef TIMING
#define TIMING 1
#endif
using namespace Givaro;
int main(
int argc,
char** argv)
{
#ifndef __GIVARO_GMP_NO_CXX
IP.seeding();
#endif
unsigned long runs;
std::vector<Integer> Lf;
IP.
write(std::cout <<
"Totient : ", Lf,phin) << std::endl;
for(
unsigned long i = 0; i <
TIMING; ++i)
IP.
write( std::cout <<
"Deterministic : ", pr ) << std::endl;
std::cerr << tim << std::endl;
}
for(
unsigned long i = 0; i <
TIMING; ++i)
IP.
write( std::cout <<
"Random : ", pr ) << std::endl;
std::cerr << tim << " (" << runs << " runs)" << std::endl;
for(
unsigned long i = 0; i <
TIMING; ++i)
IP.
write( std::cout <<
"Lowest : ", pr ) << std::endl;
std::cerr << tim << std::endl;
return 0;
}