FflasFfpack
Public Types | Public Member Functions | Static Public Member Functions | Data Fields | Static Public Attributes | Protected Attributes
ModularBalanced< int32_t > Class Template Reference

#include <modular-balanced-int32.h>

Public Types

typedef int32_t Element
typedef
ModularBalancedRandIter
< int32_t > 
RandIter
typedef NonzeroRandIter
< ModularBalanced< int32_t >
, RandIter > 
NonZeroRandIter

Public Member Functions

 ModularBalanced ()
 ModularBalanced (int32_t value, int exp=1)
 ModularBalanced (const ModularBalanced< int32_t > &mf)
ModularBalanced< Element > & assign (const ModularBalanced< Element > &F)
const ModularBalanced & operator= (const ModularBalanced< int32_t > &F)
size_t characteristic () const
unsigned long & characteristic (unsigned long &c) const
size_t cardinality () const
double & convert (double &x, const Element &y) const
float & convert (float &x, const Element &y) const
std::ostream & write (std::ostream &os) const
std::istream & read (std::istream &is)
std::ostream & write (std::ostream &os, const Element &x) const
std::istream & read (std::istream &is, Element &x) const
Element & init (Element &x, const double &y) const
Element & init (Element &x, const size_t &y) const
Element & init (Element &x, int y) const
Element & init (Element &x) const
Element & init (Element &x, long y) const
Element & assign (Element &x, const Element &y) const
bool areEqual (const Element &x, const Element &y) const
bool isZero (const Element &x) const
bool isOne (const Element &x) const
Element & add (Element &x, const Element &y, const Element &z) const
Element & sub (Element &x, const Element &y, const Element &z) const
Element & mul (Element &x, const Element &y, const Element &z) const
Element & div (Element &x, const Element &y, const Element &z) const
Element & neg (Element &x, const Element &y) const
Element & inv (Element &x, const Element &y) const
Element & axpy (Element &r, const Element &a, const Element &x, const Element &y) const
Element & addin (Element &x, const Element &y) const
Element & subin (Element &x, const Element &y) const
Element & mulin (Element &x, const Element &y) const
Element & divin (Element &x, const Element &y) const
Element & negin (Element &x) const
Element & invin (Element &x) const
Element & axpyin (Element &r, const Element &a, const Element &x) const

Static Public Member Functions

static int32_t getMaxModulus ()

Data Fields

const Element one
const Element zero
const Element mOne

Static Public Attributes

static const bool balanced = true

Protected Attributes

int32_t modulus
int32_t half_mod
int32_t mhalf_mod
double modulusinv

Member Typedef Documentation

typedef int32_t Element

Constructor & Destructor Documentation

ModularBalanced ( )
inline
ModularBalanced ( int32_t  value,
int  exp = 1 
)
inline
ModularBalanced ( const ModularBalanced< int32_t > &  mf)
inline

Member Function Documentation

ModularBalanced<Element>& assign ( const ModularBalanced< Element > &  F)
inline
const ModularBalanced& operator= ( const ModularBalanced< int32_t > &  F)
inline
size_t characteristic ( ) const
inline
unsigned long& characteristic ( unsigned long &  c) const
inline
size_t cardinality ( ) const
inline
double& convert ( double &  x,
const Element &  y 
) const
inline
float& convert ( float &  x,
const Element &  y 
) const
inline
std::ostream& write ( std::ostream &  os) const
inline
std::istream& read ( std::istream &  is)
inline
std::ostream& write ( std::ostream &  os,
const Element &  x 
) const
inline
std::istream& read ( std::istream &  is,
Element &  x 
) const
inline
Element& init ( Element &  x,
const double &  y 
) const
inline
Element& init ( Element &  x,
const size_t &  y 
) const
inline
Element& init ( Element &  x,
int  y 
) const
inline
Element& init ( Element &  x) const
inline
Element& init ( Element &  x,
long  y 
) const
inline
Element& assign ( Element &  x,
const Element &  y 
) const
inline
bool areEqual ( const Element &  x,
const Element &  y 
) const
inline
bool isZero ( const Element &  x) const
inline
bool isOne ( const Element &  x) const
inline
Element& add ( Element &  x,
const Element &  y,
const Element &  z 
) const
inline
Element& sub ( Element &  x,
const Element &  y,
const Element &  z 
) const
inline
Element& mul ( Element &  x,
const Element &  y,
const Element &  z 
) const
inline
Element& div ( Element &  x,
const Element &  y,
const Element &  z 
) const
inline
Element& neg ( Element &  x,
const Element &  y 
) const
inline
Element& inv ( Element &  x,
const Element &  y 
) const
inline
Element& axpy ( Element &  r,
const Element &  a,
const Element &  x,
const Element &  y 
) const
inline
Element& addin ( Element &  x,
const Element &  y 
) const
inline
Element& subin ( Element &  x,
const Element &  y 
) const
inline
Element& mulin ( Element &  x,
const Element &  y 
) const
inline
Element& divin ( Element &  x,
const Element &  y 
) const
inline
Element& negin ( Element &  x) const
inline
Element& invin ( Element &  x) const
inline
Element& axpyin ( Element &  r,
const Element &  a,
const Element &  x 
) const
inline
static int32_t getMaxModulus ( )
inlinestatic

Field Documentation

int32_t modulus
protected
int32_t half_mod
protected
int32_t mhalf_mod
protected
double modulusinv
protected
const Element one
const Element zero
const Element mOne
const bool balanced = true
static

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