FflasFfpack
Public Types | Public Member Functions | Data Fields | Protected Types | Protected Attributes
RNSInteger< RNS > Singleton Reference

#include <rns.h>

Public Types

typedef RNS::Element Element
 
typedef RNS::Element_ptr Element_ptr
 
typedef RNS::ConstElement_ptr ConstElement_ptr
 

Public Member Functions

 RNSInteger (const RNS &myrns)
 
template<typename T >
 RNSInteger (const T &F)
 
const RNS & rns () const
 
size_t size () const
 
bool isOne (const Element &x) const
 
bool isMOne (const Element &x) const
 
bool isZero (const Element &x) const
 
integer characteristic (integer &p) const
 
integer cardinality (integer &p) const
 
Elementinit (Element &x) const
 
Elementinit (Element &x, const Givaro::Integer &y) const
 
Elementreduce (Element &x, const Element &y) const
 
Elementreduce (Element &x) const
 
Givaro::Integer convert (Givaro::Integer &x, const Element &y) const
 
Elementassign (Element &x, const Element &y) const
 
std::ostream & write (std::ostream &os, const Element &y) const
 
std::ostream & write (std::ostream &os) const
 

Data Fields

Element one
 
Element mOne
 
Element zero
 

Protected Types

typedef RNS::BasisElement BasisElement
 
typedef Givaro::Integer integer
 

Protected Attributes

const RNS * _rns
 

Member Typedef Documentation

typedef RNS::BasisElement BasisElement
protected
typedef Givaro::Integer integer
protected
typedef RNS::Element Element
typedef RNS::Element_ptr Element_ptr
typedef RNS::ConstElement_ptr ConstElement_ptr

Constructor & Destructor Documentation

RNSInteger ( const RNS &  myrns)
inline
RNSInteger ( const T &  F)
inline

Member Function Documentation

const RNS& rns ( ) const
inline
size_t size ( ) const
inline
bool isOne ( const Element x) const
inline
bool isMOne ( const Element x) const
inline
bool isZero ( const Element x) const
inline
integer characteristic ( integer p) const
inline
integer cardinality ( integer p) const
inline
Element& init ( Element x) const
inline
Element& init ( Element x,
const Givaro::Integer &  y 
) const
inline
Element& reduce ( Element x,
const Element y 
) const
inline
Element& reduce ( Element x) const
inline
Givaro::Integer convert ( Givaro::Integer &  x,
const Element y 
) const
inline
Element& assign ( Element x,
const Element y 
) const
inline
std::ostream& write ( std::ostream &  os,
const Element y 
) const
inline
std::ostream& write ( std::ostream &  os) const
inline

Field Documentation

const RNS* _rns
protected
Element one
Element mOne
Element zero

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