NO DOC
#include <iostream>
#include <givaro/modular-integer.h>
#include <givaro/givpower.h>
#include <givaro/givtimer.h>
int main(int argc, char ** argv) {
{
Integer p(argv[3]);
Modular<Integer> Zp( p );
Modular<Integer>::Element a, b;
unsigned long e = (unsigned long)atoi(argv[2]) ;
Zp.init(a, Integer(argv[1]));
Zp.init(b);
Timer tim;tim.clear();tim.start();
tim.stop();
Zp.write( std::cout << '(', a) << '^' << e << ") % " << p << '=' << std::flush;
Zp.write( std::cerr, b) << std::endl;
std::cerr << tim << std::endl;
}
return 0;
}
Namespace in which the whole Givaro library resides.
Definition: all_field.C:23
TT & dom_power(TT &res, const TT &n, uint64_t l, const D &F)
dom_power
Definition: givpower.h:74