Givaro
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes
Poly1CRT< Field > Class Template Reference

#include <givpoly1crt.h>

Public Types

typedef Field Field_t
typedef Poly1Dom< Field, DenseRing_t
typedef Field_t::Element Type_t
typedef Ring_t::Element Element
typedef Element Rep
typedef std::vector< Type_tarray_T
typedef std::vector< Elementarray_E

Public Member Functions

 Poly1CRT ()
 ~Poly1CRT ()
 Poly1CRT (const Self_t &R)
 Poly1CRT (const Field &F, const array_T &primes, const Indeter &X=Indeter())
array_TRingToRns (array_T &rns, const Element &a) const
ElementRnsToRing (Element &a, const array_T &rns)
int size () const
const array_TPrimes () const
const Type_tith (const size_t i) const
const array_EReciprocals () const
const Elementreciprocal (const size_t i) const
const Field_tgetdomain ()
const Ring_tgetpolydom ()
std::ostream & write (std::ostream &o) const
std::istream & read (std::istream &i, Element &n) const
std::ostream & write (std::ostream &o, const Element &n) const
std::istream & read (std::istream &i, Type_t &n) const
std::ostream & write (std::ostream &o, const Type_t &n) const

Protected Member Functions

void ComputeCk ()

Protected Attributes

const Indeter _XIndet
const Field_t_F
const Ring_t _PolRing
array_T _primes
array_E _ck

Detailed Description

template<class Field>
class Givaro::Poly1CRT< Field >

Examples:

examples/Polynomial/PolynomialCRT.C.


Member Typedef Documentation

typedef Field Field_t
typedef Poly1Dom<Field, Dense> Ring_t
typedef Element Rep
typedef std::vector<Type_t> array_T
typedef std::vector<Element> array_E

Constructor & Destructor Documentation

Poly1CRT ( )
~Poly1CRT ( )
Poly1CRT ( const Self_t R)
Poly1CRT ( const Field F,
const array_T primes,
const Indeter X = Indeter() 
)

Member Function Documentation

array_T& RingToRns ( array_T rns,
const Element a 
) const
Element& RnsToRing ( Element a,
const array_T rns 
)
int size ( ) const [inline]
const Poly1CRT< Field >::array_T & Primes ( ) const
const Poly1CRT< Field >::Type_t & ith ( const size_t  i) const
const Poly1CRT< Field >::array_E & Reciprocals ( ) const
const Poly1CRT< Field >::Element & reciprocal ( const size_t  i) const
const Field_t& getdomain ( ) [inline]
const Ring_t& getpolydom ( ) [inline]
std::ostream& write ( std::ostream &  o) const [inline]
std::istream& read ( std::istream &  i,
Element n 
) const [inline]
std::ostream& write ( std::ostream &  o,
const Element n 
) const [inline]
std::istream& read ( std::istream &  i,
Type_t n 
) const [inline]
std::ostream& write ( std::ostream &  o,
const Type_t n 
) const [inline]
void ComputeCk ( ) [protected]

Field Documentation

const Indeter _XIndet [protected]
const Field_t& _F [protected]
const Ring_t _PolRing [protected]
array_T _primes [protected]
array_E _ck [protected]

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