Givaro
Public Types | Public Member Functions | Protected Attributes
QuotientDom< RingDom > Struct Template Reference

#include <givquotientdomain.h>

Inherits RingDom.

Public Types

typedef QuotientDom< RingDom > Self_t
 
typedef RingDom Ring_t
 
typedef RingDom::Element Ring_E
 
typedef Ring_E Element
 
typedef Ring_E Rep
 

Public Member Functions

 QuotientDom (const RingDom &R, const Element &Mod)
 
 QuotientDom (const Self_t &F)
 
Repinit (Rep &a) const
 
template<class XXX >
Repinit (Rep &p, const XXX &cste) const
 
Repassign (Rep &p) const
 
Repassign (Rep &p, const Rep &Q) const
 
int isZero (const Rep &P) const
 
int isOne (const Rep &P) const
 
int isMOne (const Rep &P) const
 
int areEqual (const Rep &P, const Rep &Q) const
 
int areNEqual (const Rep &P, const Rep &Q) const
 
std::istream & read (std::istream &i)
 
std::ostream & write (std::ostream &o) const
 
std::istream & read (std::istream &i, Rep &n) const
 
std::ostream & write (std::ostream &o, const Rep &n) const
 
Repmulin (Rep &q, const Rep &a) const
 
Repmul (Rep &q, const Rep &a, const Rep &b) const
 
Repaddin (Rep &r, const Rep &u) const
 
Repadd (Rep &r, const Rep &u, const Rep &v) const
 
Repsubin (Rep &r, const Rep &u) const
 
Repsub (Rep &r, const Rep &u, const Rep &v) const
 
Repnegin (Rep &r) const
 
Repneg (Rep &r, const Rep &u) const
 
Repinvin (Rep &q) const
 
Repinv (Rep &r, const Rep &u) const
 
Repdivin (Rep &q, const Rep &a) const
 
Repdiv (Rep &q, const Rep &a, const Rep &b) const
 
Repaxpy (Rep &r, const Rep &a, const Rep &x, const Rep &y) const
 
Repaxpyin (Rep &r, const Rep &a, const Rep &x) const
 
Repmaxpy (Rep &r, const Rep &a, const Rep &x, const Rep &y) const
 
Repaxmyin (Rep &r, const Rep &a, const Rep &x) const
 
Repmaxpyin (Rep &r, const Rep &a, const Rep &x) const
 
Repaxmy (Rep &r, const Rep &a, const Rep &x, const Rep &y) const
 
Reppow (Rep &W, const Rep &P, long n) const
 
template<class RandIter >
Reprandom (RandIter &g, Rep &r) const
 
template<class RandIter , class XXX >
Reprandom (RandIter &g, Rep &r, const XXX &s) const
 
template<class RandIter >
Repnonzerorandom (RandIter &g, Rep &r) const
 
template<class RandIter , class XXX >
Repnonzerorandom (RandIter &g, Rep &r, const XXX &s) const
 

Protected Attributes

Rep _modulo
 

Member Typedef Documentation

typedef QuotientDom<RingDom> Self_t
typedef RingDom Ring_t
typedef RingDom::Element Ring_E
typedef Ring_E Element
typedef Ring_E Rep

Constructor & Destructor Documentation

QuotientDom ( const RingDom &  R,
const Element Mod 
)
inline
QuotientDom ( const Self_t F)
inline

Member Function Documentation

Rep& init ( Rep a) const
inline
Rep& init ( Rep p,
const XXX &  cste 
) const
inline
Rep& assign ( Rep p) const
inline
Rep& assign ( Rep p,
const Rep Q 
) const
inline
int isZero ( const Rep P) const
inline
int isOne ( const Rep P) const
inline
int isMOne ( const Rep P) const
inline
int areEqual ( const Rep P,
const Rep Q 
) const
inline
int areNEqual ( const Rep P,
const Rep Q 
) const
inline
std::istream& read ( std::istream &  i)
inline
std::ostream& write ( std::ostream &  o) const
inline
std::istream& read ( std::istream &  i,
Rep n 
) const
inline
std::ostream& write ( std::ostream &  o,
const Rep n 
) const
inline
Rep& mulin ( Rep q,
const Rep a 
) const
inline
Rep& mul ( Rep q,
const Rep a,
const Rep b 
) const
inline
Rep& addin ( Rep r,
const Rep u 
) const
inline
Rep& add ( Rep r,
const Rep u,
const Rep v 
) const
inline
Rep& subin ( Rep r,
const Rep u 
) const
inline
Rep& sub ( Rep r,
const Rep u,
const Rep v 
) const
inline
Rep& negin ( Rep r) const
inline
Rep& neg ( Rep r,
const Rep u 
) const
inline
Rep& invin ( Rep q) const
inline
Rep& inv ( Rep r,
const Rep u 
) const
inline
Rep& divin ( Rep q,
const Rep a 
) const
inline
Rep& div ( Rep q,
const Rep a,
const Rep b 
) const
inline
Rep& axpy ( Rep r,
const Rep a,
const Rep x,
const Rep y 
) const
inline
Rep& axpyin ( Rep r,
const Rep a,
const Rep x 
) const
inline
Rep& maxpy ( Rep r,
const Rep a,
const Rep x,
const Rep y 
) const
inline
Rep& axmyin ( Rep r,
const Rep a,
const Rep x 
) const
inline
Rep& maxpyin ( Rep r,
const Rep a,
const Rep x 
) const
inline
Rep& axmy ( Rep r,
const Rep a,
const Rep x,
const Rep y 
) const
inline
Rep& pow ( Rep W,
const Rep P,
long  n 
) const
inline
Rep& random ( RandIter &  g,
Rep r 
) const
inline
Rep& random ( RandIter &  g,
Rep r,
const XXX &  s 
) const
inline
Rep& nonzerorandom ( RandIter &  g,
Rep r 
) const
inline
Rep& nonzerorandom ( RandIter &  g,
Rep r,
const XXX &  s 
) const
inline

Field Documentation

Rep _modulo
protected

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