NO DOC.
#include <iostream>
#include <givaro/modular-integer.h>
#include <givaro/givpower.h>
#include <givaro/givtimer.h>
int main(int argc, char ** argv) {
{
Modular<Integer>::Element a, b;
unsigned long e = (unsigned long)atoi(argv[2]) ;
Zp.init(b);
Zp.
write( std::cout <<
'(', a) <<
'^' << e <<
") % " << p <<
'=' << std::flush;
Zp.write( std::cerr, b) << std::endl;
std::cerr << tim << std::endl;
}
return 0;
}
This is the Integer class.
Definition: gmp++_int.h:160
This class implement the standard arithmetic with Modulo Elements.
Definition: modular-integer.h:34
Timer.
Definition: givtimer.h:129
void start()
Start timer.
Definition: givtimer.C:164
void stop()
Stop timer.
Definition: givtimer.C:172
void clear()
Clear timer.
Definition: givtimer.C:155
Namespace in which the whole Givaro library resides.
Definition: all_field.C:23
TT & dom_power(TT &res, const TT &n, long l, const D &F)
dom_power
Definition: givpower.h:74