Givaro 4.2.1
test-extension.C File Reference
#include <iostream>
#include <givaro/givpower.h>
#include <givaro/modular.h>
#include <givaro/gf2.h>
#include <givaro/gfq.h>
#include <givaro/extension.h>

Macros

#define GIV_PASSED_MSG   "\033[1;32mPASSED.\033[0m"
 
#define GIV_ERROR_MSG   "\033[1;31m****** ERROR ******\033[0m "
 

Functions

template<typename Field>
bool TestIdentity (GivRandom &generator, const int MOD, const int expo)
 
template<typename Field>
bool TestExponent (const int seed, const Field &F, const int expo)
 
template<typename Field>
bool TestSignedness (GivRandom &generator, const int expo)
 
int main (int argc, char **argv)
 

Macro Definition Documentation

◆ GIV_PASSED_MSG

#define GIV_PASSED_MSG   "\033[1;32mPASSED.\033[0m"

◆ GIV_ERROR_MSG

#define GIV_ERROR_MSG   "\033[1;31m****** ERROR ******\033[0m "

Function Documentation

◆ TestIdentity()

template<typename Field>
bool TestIdentity ( GivRandom & generator,
const int MOD,
const int expo )

◆ TestExponent()

template<typename Field>
bool TestExponent ( const int seed,
const Field & F,
const int expo )

◆ TestSignedness()

template<typename Field>
bool TestSignedness ( GivRandom & generator,
const int expo )

◆ main()

int main ( int argc,
char ** argv )