#include "givaro/givpoly1.h"
#include "givaro/extension.h"
template<
class FField>
void FaireEssai(
const FField & F) {
F.write( std::cout << "Working in : " ) << std::endl;
std::cout <<
"Enter an Element of this field: "; F.read( std::cin ,
a );
F.init(
b, (Integer)23 );
F.write( F.write( F.write( F.write(std::cout,
a) <<
" + " ,
b ) <<
" = " , r) <<
" with ") << std::endl ;
}
template void FaireEssai< Extension<> >(const Extension<> & F) ;
template void FaireEssai< GFqDom<int64_t> >(const GFqDom<int64_t> & F) ;
int main (
int argc,
char * * argv) {
uint64_t q = (argc>1?(uint64_t)atoi(argv[1]):13);
uint64_t expo = (argc>2?(uint64_t)atoi(argv[2]):8);
std::cerr <<
"Exponent max for zech logs with characteristic " << q <<
" : " <<
FF_EXPONENT_MAX(q,expo) << std::endl;
std::cerr <<
"Sub-Exponent max for zech logs " << q <<
"^" << expo <<
" : " <<
FF_SUBEXPONENT_MAX(q,expo) << std::endl;
else
return 0;
}
void FaireEssai(const FField &F)
Definition: Test_Extension.C:21
int main(int argc, char **argv)
Definition: benchmark-recint_exp.C:20
#define EXTENSION(q, expo)
Definition: extension.h:50
#define NEED_POLYNOMIAL_REPRESENTATION(p, e)
Definition: extension.h:48
Namespace in which the whole Givaro library resides.
Definition: all_field.C:23
Rt FF_SUBEXPONENT_MAX(const Rt p, const Rt e)
XXX.
Definition: extension.h:40
StaticElement< Field > Element
Definition: domain_to_operatorstyle.C:27
Rt FF_EXPONENT_MAX(const Rt p, const Rt maxe=21)
XXX.
Definition: extension.h:31
MG & a
Definition: rmadd.h:143
MG const rmint< K, MG > & b
Definition: rmadd.h:143