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

#include <givfractiondomain.h>

Inherits RingDom.

+ 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_EElement
 
typedef Frac< Ring_E, Ring_ERep
 

Public Member Functions

void reduce (Ring_E &a, Ring_E &b) const
 
Repreduce (Rep &r) const
 
 FracDom (const RingDom &R)
 
 FracDom (const Self_t &F)
 
const Ring_tgetdomain () const
 
const Ring_tgetring () const
 
Repinit (Rep &a) const
 
template<class XXX >
Repinit (Rep &p, const XXX &cste) const
 
Repassign (Rep &p, const Rep &q) const
 
Repassign (Rep &p, const Ring_E &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
 
Repmulin (Rep &q, const Ring_E &a) const
 
Repmul (Rep &q, const Rep &a, const Ring_E &b) const
 
Repmul (Rep &q, const Ring_E &a, const Rep &b) const
 
Repmul (Rep &q, const Rep &a, const Rep &b) const
 
Repaddin (Rep &res, const Rep &u) const
 
Repaddin (Rep &res, const Ring_E &a) const
 
Repadd (Rep &res, const Rep &u, const Rep &v) const
 
Repadd (Rep &res, const Rep &u, const Ring_E &a) const
 
Repadd (Rep &res, const Ring_E &a, const Rep &u) const
 
Repsubin (Rep &res, const Rep &u) const
 
Repsubin (Rep &res, const Ring_E &a) const
 
Repsub (Rep &res, const Rep &u, const Rep &v) const
 
Repsub (Rep &res, const Rep &u, const Ring_E &a) const
 
Repsub (Rep &res, const Ring_E &a, const Rep &u) const
 
Repnegin (Rep &res) const
 
Repneg (Rep &res, const Rep &u) const
 
Repinvin (Rep &q) const
 
Repinv (Rep &r, const Rep &u) const
 
Repinv (Rep &r, const Ring_E &a)
 
Repdivin (Rep &q, const Rep &a) const
 
Repdivin (Rep &q, const Ring_E &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
 
Repaxpy (Rep &r, const Rep &a, const Ring_E &x, const Rep &y) const
 
Repaxpy (Rep &r, const Rep &a, const Rep &x, const Ring_E &y) const
 
Repaxpy (Rep &r, const Ring_E &a, const Rep &x, const Rep &y) const
 
Repaxpy (Rep &r, const Ring_E &a, const Ring_E &x, const Rep &y) const
 
Repaxpy (Rep &r, const Ring_E &a, const Rep &x, const Ring_E &y) const
 
Repaxpy (Rep &r, const Rep &a, const Ring_E &x, const Ring_E &y) const
 
Repaxpyin (Rep &r, const Rep &a, const Rep &x) const
 
Repaxpyin (Rep &r, const Ring_E &a, const Rep &x) const
 
Repaxpyin (Rep &r, const Rep &a, const Ring_E &x) const
 
Repaxpyin (Rep &r, const Ring_E &a, const Ring_E &x) const
 
Repmaxpy (Rep &r, const Rep &a, const Rep &x, const Rep &y) const
 
Repmaxpy (Rep &r, const Rep &a, const Ring_E &x, const Rep &y) const
 
Repmaxpy (Rep &r, const Rep &a, const Rep &x, const Ring_E &y) const
 
Repmaxpy (Rep &r, const Ring_E &a, const Rep &x, const Rep &y) const
 
Repmaxpy (Rep &r, const Ring_E &a, const Ring_E &x, const Rep &y) const
 
Repmaxpy (Rep &r, const Ring_E &a, const Rep &x, const Ring_E &y) const
 
Repmaxpy (Rep &r, const Rep &a, const Ring_E &x, const Ring_E &y) const
 
Repaxmyin (Rep &r, const Rep &a, const Rep &x) const
 
Repaxmyin (Rep &r, const Ring_E &a, const Rep &x) const
 
Repaxmyin (Rep &r, const Rep &a, const Ring_E &x) const
 
Repaxmyin (Rep &r, const Ring_E &a, const Ring_E &x) const
 
Repmaxpyin (Rep &r, const Rep &a, const Rep &x) const
 
Repmaxpyin (Rep &r, const Ring_E &a, const Rep &x) const
 
Repmaxpyin (Rep &r, const Rep &a, const Ring_E &x) const
 
Repmaxpyin (Rep &r, const Ring_E &a, const Ring_E &x) const
 
Repaxmy (Rep &r, const Rep &a, const Rep &x, const Rep &y) const
 
Repaxmy (Rep &r, const Ring_E &a, const Rep &x, const Rep &y) const
 
Repaxmy (Rep &r, const Rep &a, const Ring_E &x, const Rep &y) const
 
Repaxmy (Rep &r, const Rep &a, const Rep &x, const Ring_E &y) const
 
Repaxmy (Rep &r, const Ring_E &a, const Ring_E &x, const Rep &y) const
 
Repaxmy (Rep &r, const Ring_E &a, const Rep &x, const Ring_E &y) const
 
Repaxmy (Rep &r, const Rep &a, const Ring_E &x, const Ring_E &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
 

Data Fields

const Rep zero
 
const Rep one
 
const Rep mOne
 

Member Typedef Documentation

◆ Self_t

typedef FracDom<RingDom> Self_t

◆ Ring_t

typedef RingDom Ring_t

◆ Ring_E

◆ Element

◆ Rep

typedef Frac<Ring_E, Ring_E> Rep

Constructor & Destructor Documentation

◆ FracDom() [1/2]

FracDom ( const RingDom &  R)
inline

◆ FracDom() [2/2]

FracDom ( const Self_t F)
inline

Member Function Documentation

◆ reduce() [1/2]

void reduce ( Ring_E a,
Ring_E b 
) const
inline

◆ reduce() [2/2]

Rep& reduce ( Rep r) const
inline

◆ getdomain()

const Ring_t& getdomain ( ) const
inline

◆ getring()

const Ring_t& getring ( ) const
inline

◆ init() [1/2]

Rep& init ( Rep a) const
inline

◆ init() [2/2]

Rep& init ( Rep p,
const XXX &  cste 
) const
inline

◆ assign() [1/2]

Rep& assign ( Rep p,
const Rep q 
) const
inline

◆ assign() [2/2]

Rep& assign ( Rep p,
const Ring_E q 
) const
inline

◆ isZero()

int isZero ( const Rep P) const
inline

◆ isOne()

int isOne ( const Rep P) const
inline

◆ isMOne()

int isMOne ( const Rep P) const
inline

◆ areEqual()

int areEqual ( const Rep P,
const Rep Q 
) const
inline

◆ areNEqual()

int areNEqual ( const Rep P,
const Rep Q 
) const
inline

◆ read() [1/2]

std::istream& read ( std::istream &  i)
inline

◆ write() [1/2]

std::ostream& write ( std::ostream &  o) const
inline

◆ read() [2/2]

std::istream& read ( std::istream &  i,
Rep n 
) const
inline

◆ write() [2/2]

std::ostream& write ( std::ostream &  o,
const Rep n 
) const
inline

◆ mulin() [1/2]

Rep& mulin ( Rep q,
const Rep a 
) const
inline

◆ mulin() [2/2]

Rep& mulin ( Rep q,
const Ring_E a 
) const
inline

◆ mul() [1/3]

Rep& mul ( Rep q,
const Rep a,
const Ring_E b 
) const
inline

◆ mul() [2/3]

Rep& mul ( Rep q,
const Ring_E a,
const Rep b 
) const
inline

◆ mul() [3/3]

Rep& mul ( Rep q,
const Rep a,
const Rep b 
) const
inline

◆ addin() [1/2]

Rep& addin ( Rep res,
const Rep u 
) const
inline

◆ addin() [2/2]

Rep& addin ( Rep res,
const Ring_E a 
) const
inline

◆ add() [1/3]

Rep& add ( Rep res,
const Rep u,
const Rep v 
) const
inline

◆ add() [2/3]

Rep& add ( Rep res,
const Rep u,
const Ring_E a 
) const
inline

◆ add() [3/3]

Rep& add ( Rep res,
const Ring_E a,
const Rep u 
) const
inline

◆ subin() [1/2]

Rep& subin ( Rep res,
const Rep u 
) const
inline

◆ subin() [2/2]

Rep& subin ( Rep res,
const Ring_E a 
) const
inline

◆ sub() [1/3]

Rep& sub ( Rep res,
const Rep u,
const Rep v 
) const
inline

◆ sub() [2/3]

Rep& sub ( Rep res,
const Rep u,
const Ring_E a 
) const
inline

◆ sub() [3/3]

Rep& sub ( Rep res,
const Ring_E a,
const Rep u 
) const
inline

◆ negin()

Rep& negin ( Rep res) const
inline

◆ neg()

Rep& neg ( Rep res,
const Rep u 
) const
inline

◆ invin()

Rep& invin ( Rep q) const
inline

◆ inv() [1/2]

Rep& inv ( Rep r,
const Rep u 
) const
inline

◆ inv() [2/2]

Rep& inv ( Rep r,
const Ring_E a 
)
inline

◆ divin() [1/2]

Rep& divin ( Rep q,
const Rep a 
) const
inline

◆ divin() [2/2]

Rep& divin ( Rep q,
const Ring_E a 
) const
inline

◆ div()

Rep& div ( Rep q,
const Rep a,
const Rep b 
) const
inline

◆ axpy() [1/7]

Rep& axpy ( Rep r,
const Rep a,
const Rep x,
const Rep y 
) const
inline

◆ axpy() [2/7]

Rep& axpy ( Rep r,
const Rep a,
const Ring_E x,
const Rep y 
) const
inline

◆ axpy() [3/7]

Rep& axpy ( Rep r,
const Rep a,
const Rep x,
const Ring_E y 
) const
inline

◆ axpy() [4/7]

Rep& axpy ( Rep r,
const Ring_E a,
const Rep x,
const Rep y 
) const
inline

◆ axpy() [5/7]

Rep& axpy ( Rep r,
const Ring_E a,
const Ring_E x,
const Rep y 
) const
inline

◆ axpy() [6/7]

Rep& axpy ( Rep r,
const Ring_E a,
const Rep x,
const Ring_E y 
) const
inline

◆ axpy() [7/7]

Rep& axpy ( Rep r,
const Rep a,
const Ring_E x,
const Ring_E y 
) const
inline

◆ axpyin() [1/4]

Rep& axpyin ( Rep r,
const Rep a,
const Rep x 
) const
inline

◆ axpyin() [2/4]

Rep& axpyin ( Rep r,
const Ring_E a,
const Rep x 
) const
inline

◆ axpyin() [3/4]

Rep& axpyin ( Rep r,
const Rep a,
const Ring_E x 
) const
inline

◆ axpyin() [4/4]

Rep& axpyin ( Rep r,
const Ring_E a,
const Ring_E x 
) const
inline

◆ maxpy() [1/7]

Rep& maxpy ( Rep r,
const Rep a,
const Rep x,
const Rep y 
) const
inline

◆ maxpy() [2/7]

Rep& maxpy ( Rep r,
const Rep a,
const Ring_E x,
const Rep y 
) const
inline

◆ maxpy() [3/7]

Rep& maxpy ( Rep r,
const Rep a,
const Rep x,
const Ring_E y 
) const
inline

◆ maxpy() [4/7]

Rep& maxpy ( Rep r,
const Ring_E a,
const Rep x,
const Rep y 
) const
inline

◆ maxpy() [5/7]

Rep& maxpy ( Rep r,
const Ring_E a,
const Ring_E x,
const Rep y 
) const
inline

◆ maxpy() [6/7]

Rep& maxpy ( Rep r,
const Ring_E a,
const Rep x,
const Ring_E y 
) const
inline

◆ maxpy() [7/7]

Rep& maxpy ( Rep r,
const Rep a,
const Ring_E x,
const Ring_E y 
) const
inline

◆ axmyin() [1/4]

Rep& axmyin ( Rep r,
const Rep a,
const Rep x 
) const
inline

◆ axmyin() [2/4]

Rep& axmyin ( Rep r,
const Ring_E a,
const Rep x 
) const
inline

◆ axmyin() [3/4]

Rep& axmyin ( Rep r,
const Rep a,
const Ring_E x 
) const
inline

◆ axmyin() [4/4]

Rep& axmyin ( Rep r,
const Ring_E a,
const Ring_E x 
) const
inline

◆ maxpyin() [1/4]

Rep& maxpyin ( Rep r,
const Rep a,
const Rep x 
) const
inline

◆ maxpyin() [2/4]

Rep& maxpyin ( Rep r,
const Ring_E a,
const Rep x 
) const
inline

◆ maxpyin() [3/4]

Rep& maxpyin ( Rep r,
const Rep a,
const Ring_E x 
) const
inline

◆ maxpyin() [4/4]

Rep& maxpyin ( Rep r,
const Ring_E a,
const Ring_E x 
) const
inline

◆ axmy() [1/7]

Rep& axmy ( Rep r,
const Rep a,
const Rep x,
const Rep y 
) const
inline

◆ axmy() [2/7]

Rep& axmy ( Rep r,
const Ring_E a,
const Rep x,
const Rep y 
) const
inline

◆ axmy() [3/7]

Rep& axmy ( Rep r,
const Rep a,
const Ring_E x,
const Rep y 
) const
inline

◆ axmy() [4/7]

Rep& axmy ( Rep r,
const Rep a,
const Rep x,
const Ring_E y 
) const
inline

◆ axmy() [5/7]

Rep& axmy ( Rep r,
const Ring_E a,
const Ring_E x,
const Rep y 
) const
inline

◆ axmy() [6/7]

Rep& axmy ( Rep r,
const Ring_E a,
const Rep x,
const Ring_E y 
) const
inline

◆ axmy() [7/7]

Rep& axmy ( Rep r,
const Rep a,
const Ring_E x,
const Ring_E y 
) const
inline

◆ pow()

Rep& pow ( Rep W,
const Rep P,
long  n 
) const
inline

◆ random() [1/2]

Rep& random ( RandIter &  g,
Rep r 
) const
inline

◆ random() [2/2]

Rep& random ( RandIter &  g,
Rep r,
const XXX &  s 
) const
inline

◆ nonzerorandom() [1/2]

Rep& nonzerorandom ( RandIter &  g,
Rep r 
) const
inline

◆ nonzerorandom() [2/2]

Rep& nonzerorandom ( RandIter &  g,
Rep r,
const XXX &  s 
) const
inline

Field Documentation

◆ zero

const Rep zero

◆ one

const Rep one

◆ mOne

const Rep mOne

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