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

Poly1 CRT. More...

#include <givpoly1crt.h>

+ Collaboration diagram for Poly1CRT< Field >:

Public Types

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

Public Member Functions

 Poly1CRT ()
 ~Poly1CRT ()
 Poly1CRT (const Self_t &R)
 Poly1CRT (const Field &F, const array_T &primes, const Indeter &X=Indeter())
array_T & RingToRns (array_T &rns, const Element &a) const
Element & RnsToRing (Element &a, const array_T &rns)
int size () const
const array_T & Primes () const
const Type_t & ith (const size_t i) const
const array_E & Reciprocals () const
const Element & reciprocal (const size_t i) const
const Field_t & getdomain ()
const Ring_t & getpolydom ()
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 >

Poly1 CRT.

Examples:
examples/Polynomial/PolynomialCRT.C.

Member Typedef Documentation

typedef Field Field_t
typedef Ring_t::Element Element
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

Poly1CRT< Field >::array_T & RingToRns ( array_T &  rns,
const Element &  a 
) const
Poly1CRT< Field >::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: