Givaro
Public Types | Public Member Functions | Data Fields
BaseDomain< T > Class Template Reference

Base Domain. More...

#include <givgenarith.h>

Public Types

enum  { size_rep = sizeof(Rep) }
 
typedef T Rep
 

Public Member Functions

 BaseDomain ()
 
int operator== (const BaseDomain< T > &BC) const
 
int operator!= (const BaseDomain< T > &BC) const
 
void init (Rep &r) const
 
void init (Rep &r, const Rep a) const
 
void assign (Rep &r, const Rep a) const
 
int isZero (const Rep r) const
 
int isOne (const Rep r) const
 
int isMOne (const Rep r) const
 
int areEqual (const Rep r, const Rep a) const
 
int areNEqual (const Rep r, const Rep a) const
 
void mul (Rep &r, const Rep a, const Rep b) const
 
void div (Rep &r, const Rep a, const Rep b) const
 
void mod (Rep &r, const Rep a, const Rep b) const
 
void add (Rep &r, const Rep a, const Rep b) const
 
void sub (Rep &r, const Rep a, const Rep b) const
 
void mulin (Rep &r, const Rep a) const
 
void divin (Rep &r, const Rep a) const
 
void modin (Rep &r, const Rep a) const
 
void addin (Rep &r, const Rep a) const
 
void subin (Rep &r, const Rep a) const
 
void axpy (Rep &r, const Rep a, const Rep b, const Rep c) const
 
void axpyin (Rep &r, const Rep a, const Rep b) const
 
void axmy (Rep &r, const Rep a, const Rep b, const Rep c) const
 
void axmyin (Rep &r, const Rep a, const Rep b) const
 
void neg (Rep &r, const Rep a) const
 
void inv (Rep &r, const Rep a) const
 
void negin (Rep &r) const
 
void invin (Rep &r) const
 
ostream & write (ostream &s) const
 
istream & read (istream &s)
 
ostream & write (ostream &s, const Rep &r) const
 
istream & read (istream &s, Rep &r) const
 

Data Fields

const Rep zero
 
const Rep one
 
const Rep mone
 

Detailed Description

template<class T>
class Givaro::BaseDomain< T >

Base Domain.

Member Typedef Documentation

typedef T Rep

Member Enumeration Documentation

anonymous enum
Enumerator
size_rep 

Constructor & Destructor Documentation

BaseDomain ( )
inline

Member Function Documentation

int operator== ( const BaseDomain< T > &  BC) const
inline
int operator!= ( const BaseDomain< T > &  BC) const
inline
void init ( Rep r) const
inline
void init ( Rep r,
const Rep  a 
) const
inline
void assign ( Rep r,
const Rep  a 
) const
inline
int isZero ( const Rep  r) const
inline
int isOne ( const Rep  r) const
inline
int isMOne ( const Rep  r) const
inline
int areEqual ( const Rep  r,
const Rep  a 
) const
inline
int areNEqual ( const Rep  r,
const Rep  a 
) const
inline
void mul ( Rep r,
const Rep  a,
const Rep  b 
) const
inline
void div ( Rep r,
const Rep  a,
const Rep  b 
) const
inline
void mod ( Rep r,
const Rep  a,
const Rep  b 
) const
inline
void add ( Rep r,
const Rep  a,
const Rep  b 
) const
inline
void sub ( Rep r,
const Rep  a,
const Rep  b 
) const
inline
void mulin ( Rep r,
const Rep  a 
) const
inline
void divin ( Rep r,
const Rep  a 
) const
inline
void modin ( Rep r,
const Rep  a 
) const
inline
void addin ( Rep r,
const Rep  a 
) const
inline
void subin ( Rep r,
const Rep  a 
) const
inline
void axpy ( Rep r,
const Rep  a,
const Rep  b,
const Rep  c 
) const
inline
void axpyin ( Rep r,
const Rep  a,
const Rep  b 
) const
inline
void axmy ( Rep r,
const Rep  a,
const Rep  b,
const Rep  c 
) const
inline
void axmyin ( Rep r,
const Rep  a,
const Rep  b 
) const
inline
void neg ( Rep r,
const Rep  a 
) const
inline
void inv ( Rep r,
const Rep  a 
) const
inline
void negin ( Rep r) const
inline
void invin ( Rep r) const
inline
ostream& write ( ostream &  s) const
inline
istream& read ( istream &  s)
inline
ostream& write ( ostream &  s,
const Rep r 
) const
inline
istream& read ( istream &  s,
Rep r 
) const
inline

Field Documentation

const Rep zero
const Rep one
const Rep mone

The documentation for this class was generated from the following file: