Givaro
Public Types | Public Member Functions | Data Fields
FracDom< RingDom > Struct Template Reference

#include <givfractiondomain.h>

+ Collaboration diagram for FracDom< RingDom >:

Public Types

typedef FracDom< RingDom > Self_t
typedef RingDom Ring_t
typedef RingDom::Element Ring_E
typedef Frac< Ring_E, Ring_E > Element
typedef Frac< Ring_E, Ring_E > Rep

Public Member Functions

void reduce (Ring_E &a, Ring_E &b) const
Rep & reduce (Rep &r) const
 FracDom (const RingDom &R)
 FracDom (const Self_t &F)
const Ring_t & getdomain () const
const Ring_t & getring () const
Rep & init (Rep &a) const
template<class XXX >
Rep & init (Rep &p, const XXX &cste) const
Rep & assign (Rep &p, const Rep &q) const
Rep & assign (Rep &p, const Ring_E &q) const
int isZero (const Rep &P) const
int isOne (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
Rep & mulin (Rep &q, const Rep &a) const
Rep & mulin (Rep &q, const Ring_E &a) const
Rep & mul (Rep &q, const Rep &a, const Ring_E &b) const
Rep & mul (Rep &q, const Ring_E &a, const Rep &b) const
Rep & mul (Rep &q, const Rep &a, const Rep &b) const
Rep & addin (Rep &res, const Rep &u) const
Rep & addin (Rep &res, const Ring_E &a) const
Rep & add (Rep &res, const Rep &u, const Rep &v) const
Rep & add (Rep &res, const Rep &u, const Ring_E &a) const
Rep & add (Rep &res, const Ring_E &a, const Rep &u) const
Rep & subin (Rep &res, const Rep &u) const
Rep & subin (Rep &res, const Ring_E &a) const
Rep & sub (Rep &res, const Rep &u, const Rep &v) const
Rep & sub (Rep &res, const Rep &u, const Ring_E &a) const
Rep & sub (Rep &res, const Ring_E &a, const Rep &u) const
Rep & negin (Rep &res) const
Rep & neg (Rep &res, const Rep &u) const
Rep & invin (Rep &q) const
Rep & inv (Rep &r, const Rep &u) const
Rep & inv (Rep &r, const Ring_E &a)
Rep & divin (Rep &q, const Rep &a) const
Rep & divin (Rep &q, const Ring_E &a) const
Rep & div (Rep &q, const Rep &a, const Rep &b) const
Rep & axpy (Rep &r, const Rep &a, const Rep &x, const Rep &y) const
Rep & axpy (Rep &r, const Rep &a, const Ring_E &x, const Rep &y) const
Rep & axpy (Rep &r, const Rep &a, const Rep &x, const Ring_E &y) const
Rep & axpy (Rep &r, const Ring_E &a, const Rep &x, const Rep &y) const
Rep & axpy (Rep &r, const Ring_E &a, const Ring_E &x, const Rep &y) const
Rep & axpy (Rep &r, const Ring_E &a, const Rep &x, const Ring_E &y) const
Rep & axpy (Rep &r, const Rep &a, const Ring_E &x, const Ring_E &y) const
Rep & axpyin (Rep &r, const Rep &a, const Rep &x) const
Rep & axpyin (Rep &r, const Ring_E &a, const Rep &x) const
Rep & axpyin (Rep &r, const Rep &a, const Ring_E &x) const
Rep & axpyin (Rep &r, const Ring_E &a, const Ring_E &x) const
Rep & maxpy (Rep &r, const Rep &a, const Rep &x, const Rep &y) const
Rep & maxpy (Rep &r, const Rep &a, const Ring_E &x, const Rep &y) const
Rep & maxpy (Rep &r, const Rep &a, const Rep &x, const Ring_E &y) const
Rep & maxpy (Rep &r, const Ring_E &a, const Rep &x, const Rep &y) const
Rep & maxpy (Rep &r, const Ring_E &a, const Ring_E &x, const Rep &y) const
Rep & maxpy (Rep &r, const Ring_E &a, const Rep &x, const Ring_E &y) const
Rep & maxpy (Rep &r, const Rep &a, const Ring_E &x, const Ring_E &y) const
Rep & axmyin (Rep &r, const Rep &a, const Rep &x) const
Rep & axmyin (Rep &r, const Ring_E &a, const Rep &x) const
Rep & axmyin (Rep &r, const Rep &a, const Ring_E &x) const
Rep & axmyin (Rep &r, const Ring_E &a, const Ring_E &x) const
Rep & maxpyin (Rep &r, const Rep &a, const Rep &x) const
Rep & maxpyin (Rep &r, const Ring_E &a, const Rep &x) const
Rep & maxpyin (Rep &r, const Rep &a, const Ring_E &x) const
Rep & maxpyin (Rep &r, const Ring_E &a, const Ring_E &x) const
Rep & axmy (Rep &r, const Rep &a, const Rep &x, const Rep &y) const
Rep & axmy (Rep &r, const Ring_E &a, const Rep &x, const Rep &y) const
Rep & axmy (Rep &r, const Rep &a, const Ring_E &x, const Rep &y) const
Rep & axmy (Rep &r, const Rep &a, const Rep &x, const Ring_E &y) const
Rep & axmy (Rep &r, const Ring_E &a, const Ring_E &x, const Rep &y) const
Rep & axmy (Rep &r, const Ring_E &a, const Rep &x, const Ring_E &y) const
Rep & axmy (Rep &r, const Rep &a, const Ring_E &x, const Ring_E &y) const
Rep & pow (Rep &W, const Rep &P, long n) const
template<class RandIter >
Rep & random (RandIter &g, Rep &r) const
template<class RandIter , class XXX >
Rep & random (RandIter &g, Rep &r, const XXX &s) const
template<class RandIter >
Rep & nonzerorandom (RandIter &g, Rep &r) const
template<class RandIter , class XXX >
Rep & nonzerorandom (RandIter &g, Rep &r, const XXX &s) const

Data Fields

const Rep zero
const Rep one
const Rep mOne

Member Typedef Documentation

typedef FracDom<RingDom> Self_t
typedef RingDom Ring_t
typedef RingDom::Element Ring_E
typedef Frac<Ring_E, Ring_E> Rep

Constructor & Destructor Documentation

FracDom ( const RingDom &  R)
inline
FracDom ( const Self_t &  F)
inline

Member Function Documentation

void reduce ( Ring_E &  a,
Ring_E &  b 
) const
inline
Rep& reduce ( Rep &  r) const
inline
const Ring_t& getdomain ( ) const
inline
const Ring_t& getring ( ) const
inline
Rep& init ( Rep &  a) const
inline
Rep& init ( Rep &  p,
const XXX &  cste 
) const
inline
Rep& assign ( Rep &  p,
const Rep &  q 
) const
inline
Rep& assign ( Rep &  p,
const Ring_E &  q 
) const
inline
int isZero ( const Rep &  P) const
inline
int isOne ( 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& mulin ( Rep &  q,
const Ring_E &  a 
) const
inline
Rep& mul ( Rep &  q,
const Rep &  a,
const Ring_E &  b 
) const
inline
Rep& mul ( Rep &  q,
const Ring_E &  a,
const Rep &  b 
) const
inline
Rep& mul ( Rep &  q,
const Rep &  a,
const Rep &  b 
) const
inline
Rep& addin ( Rep &  res,
const Rep &  u 
) const
inline
Rep& addin ( Rep &  res,
const Ring_E &  a 
) const
inline
Rep& add ( Rep &  res,
const Rep &  u,
const Rep &  v 
) const
inline
Rep& add ( Rep &  res,
const Rep &  u,
const Ring_E &  a 
) const
inline
Rep& add ( Rep &  res,
const Ring_E &  a,
const Rep &  u 
) const
inline
Rep& subin ( Rep &  res,
const Rep &  u 
) const
inline
Rep& subin ( Rep &  res,
const Ring_E &  a 
) const
inline
Rep& sub ( Rep &  res,
const Rep &  u,
const Rep &  v 
) const
inline
Rep& sub ( Rep &  res,
const Rep &  u,
const Ring_E &  a 
) const
inline
Rep& sub ( Rep &  res,
const Ring_E &  a,
const Rep &  u 
) const
inline
Rep& negin ( Rep &  res) const
inline
Rep& neg ( Rep &  res,
const Rep &  u 
) const
inline
Rep& invin ( Rep &  q) const
inline
Rep& inv ( Rep &  r,
const Rep &  u 
) const
inline
Rep& inv ( Rep &  r,
const Ring_E &  a 
)
inline
Rep& divin ( Rep &  q,
const Rep &  a 
) const
inline
Rep& divin ( Rep &  q,
const Ring_E &  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& axpy ( Rep &  r,
const Rep &  a,
const Ring_E &  x,
const Rep &  y 
) const
inline
Rep& axpy ( Rep &  r,
const Rep &  a,
const Rep &  x,
const Ring_E &  y 
) const
inline
Rep& axpy ( Rep &  r,
const Ring_E &  a,
const Rep &  x,
const Rep &  y 
) const
inline
Rep& axpy ( Rep &  r,
const Ring_E &  a,
const Ring_E &  x,
const Rep &  y 
) const
inline
Rep& axpy ( Rep &  r,
const Ring_E &  a,
const Rep &  x,
const Ring_E &  y 
) const
inline
Rep& axpy ( Rep &  r,
const Rep &  a,
const Ring_E &  x,
const Ring_E &  y 
) const
inline
Rep& axpyin ( Rep &  r,
const Rep &  a,
const Rep &  x 
) const
inline
Rep& axpyin ( Rep &  r,
const Ring_E &  a,
const Rep &  x 
) const
inline
Rep& axpyin ( Rep &  r,
const Rep &  a,
const Ring_E &  x 
) const
inline
Rep& axpyin ( Rep &  r,
const Ring_E &  a,
const Ring_E &  x 
) const
inline
Rep& maxpy ( Rep &  r,
const Rep &  a,
const Rep &  x,
const Rep &  y 
) const
inline
Rep& maxpy ( Rep &  r,
const Rep &  a,
const Ring_E &  x,
const Rep &  y 
) const
inline
Rep& maxpy ( Rep &  r,
const Rep &  a,
const Rep &  x,
const Ring_E &  y 
) const
inline
Rep& maxpy ( Rep &  r,
const Ring_E &  a,
const Rep &  x,
const Rep &  y 
) const
inline
Rep& maxpy ( Rep &  r,
const Ring_E &  a,
const Ring_E &  x,
const Rep &  y 
) const
inline
Rep& maxpy ( Rep &  r,
const Ring_E &  a,
const Rep &  x,
const Ring_E &  y 
) const
inline
Rep& maxpy ( Rep &  r,
const Rep &  a,
const Ring_E &  x,
const Ring_E &  y 
) const
inline
Rep& axmyin ( Rep &  r,
const Rep &  a,
const Rep &  x 
) const
inline
Rep& axmyin ( Rep &  r,
const Ring_E &  a,
const Rep &  x 
) const
inline
Rep& axmyin ( Rep &  r,
const Rep &  a,
const Ring_E &  x 
) const
inline
Rep& axmyin ( Rep &  r,
const Ring_E &  a,
const Ring_E &  x 
) const
inline
Rep& maxpyin ( Rep &  r,
const Rep &  a,
const Rep &  x 
) const
inline
Rep& maxpyin ( Rep &  r,
const Ring_E &  a,
const Rep &  x 
) const
inline
Rep& maxpyin ( Rep &  r,
const Rep &  a,
const Ring_E &  x 
) const
inline
Rep& maxpyin ( Rep &  r,
const Ring_E &  a,
const Ring_E &  x 
) const
inline
Rep& axmy ( Rep &  r,
const Rep &  a,
const Rep &  x,
const Rep &  y 
) const
inline
Rep& axmy ( Rep &  r,
const Ring_E &  a,
const Rep &  x,
const Rep &  y 
) const
inline
Rep& axmy ( Rep &  r,
const Rep &  a,
const Ring_E &  x,
const Rep &  y 
) const
inline
Rep& axmy ( Rep &  r,
const Rep &  a,
const Rep &  x,
const Ring_E &  y 
) const
inline
Rep& axmy ( Rep &  r,
const Ring_E &  a,
const Ring_E &  x,
const Rep &  y 
) const
inline
Rep& axmy ( Rep &  r,
const Ring_E &  a,
const Rep &  x,
const Ring_E &  y 
) const
inline
Rep& axmy ( Rep &  r,
const Rep &  a,
const Ring_E &  x,
const Ring_E &  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

const Rep zero
const Rep one
const Rep mOne

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