Givaro
Data Structures | Macros | Functions
test-ringarith.C File Reference
#include <iostream>
#include "givaro/givzpz16std.h"
#include "givaro/givzpz16table1.h"
#include "givaro/givzpz32std.h"
#include "givaro/givzpz32uns.h"
#include <givaro/givzpzInt.h>
#include <givaro/givzpz64std.h>
#include <givaro/givzpz.h>
#include <givaro/givpoly1.h>
#include <givaro/givinteger.h>
+ Include dependency graph for test-ringarith.C:

Data Structures

struct  InitOrAssign< R, T1, T2 >
struct  InitOrAssign< R, T, T >

Macros

#define TESTE_EG(a, b)
#define JETESTE(a, s)
#define JEPOLTESTE(a, s)
#define JEONETESTE(F, a, x)
#define NBITER   50
#define DEGMAX   75
#define NBITERD   10

Functions

template<class Ring , class T1 , class T2 >
int TestOneRing (const Ring &F, const T1 FIRSTINT, const T2 FIRSTFLOAT)
template<class Ring >
int TestRing (const Ring &F, const unsigned long seed)
template<class Ring >
int TestPolRing (const Ring &F, const unsigned long seed)
int main (int argc, char **argv)

Macro Definition Documentation

#define TESTE_EG (   a,
 
)
Value:
if (!F.areEqual((a),(b))) {\
F.write( F.write(std::cout,a) << "!=",b) << " failed (at line " << __LINE__ << ")" << std::endl; \
return(-1); \
}
#define JETESTE (   a,
 
)
Value:
if (TestRing( (a), (s)) ) {\
std::cout << #a << " failed !" << std::endl;\
return -1 ; \
}
#define JEPOLTESTE (   a,
 
)
Value:
if (TestPolRing( (a), (s) ) ) {\
std::cout << #a << " failed !" << std::endl;\
return -1 ; \
}
#define JEONETESTE (   F,
  a,
 
)
Value:
if (TestOneRing(F,a,x)) {\
std::cout << #a << " failed !" << std::endl;\
return -1 ; \
}
#define NBITER   50
#define DEGMAX   75
#define NBITERD   10

Function Documentation

int TestOneRing ( const Ring &  F,
const T1  FIRSTINT,
const T2  FIRSTFLOAT 
)
Warning:
F.init(c_,c); ne marche pas !
int TestRing ( const Ring &  F,
const unsigned long  seed 
)
int TestPolRing ( const Ring &  F,
const unsigned long  seed 
)
int main ( int  argc,
char **  argv 
)