NO DOC
#include <iostream>
#include <stdlib.h>
#include <givaro/gfq.h>
#include <givaro/givpoly1factor.h>
#include <givaro/givtimer.h>
using namespace std;
int main(
int argc,
char** argv)
{
if (argc > 1)
else
uint64_t expo = 1;
if (argc > 2) expo = (uint64_t)atoi(argv[2]);
GFqDom<int64_t> F(
MOD, expo);
Poly1FactorDom<GFqDom<int64_t>, Dense> FD(F,Indeter("X"));
Poly1FactorDom<GFqDom<int64_t>, Dense>
::Element P;
FD.read( cin, P );
F.read( cin, val );
Timer tim; tim.clear(); tim.start();
FD.eval(res, P, val );
tim.stop();
F.write( F.write( FD.write( cout, P ) << " is ", res ) << " at ", val) << endl;
std::cerr << tim << std::endl;
return 0;
}
int main(int argc, char **argv)
Definition: benchmark-recint_exp.C:20
Rep Element
Definition: gfq.h:79
UTT Residu_t
Definition: gfq.h:91
Field::Element Element
Definition: f4n3.cpp:12
#define MOD
Definition: modular-floating.inl:16
Namespace in which the whole Givaro library resides.
Definition: all_field.C:23