NO DOC.
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);
dom_power(b, a, (long)e, Zp);
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
Forward declaration for Givaro::Modular.
Definition: modular-inttype.h:37
Timer.
Definition: givtimer.h:129
void start()
Start timer.
Definition: givtimer.C:190
void stop()
Stop timer.
Definition: givtimer.C:198
void clear()
Clear timer.
Definition: givtimer.C:181
Namespace in which the whole Givaro library resides.
Definition: all_field.C:23