Main Page   Modules   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

NTL_ZZ_p Struct Reference

#include <ntl-ZZ_p.h>

Inheritance diagram for NTL_ZZ_p:

UnparametricField< NTL::ZZ_p > FieldInterface List of all members.

Public Methods

 NTL_ZZ_p (integer p, size_t e=1)
NTL::ZZ_p & init (NTL::ZZ_p &x, const integer &y) const
NTL::ZZ_p & init (NTL::ZZ_p &x, const double &y) const
NTL::ZZ_p & init (NTL::ZZ_p &x, const NTL::ZZ &y) const
NTL::ZZ & convert (NTL::ZZ &x, const NTL::ZZ_p &y) const
integerconvert (integer &x, const NTL::ZZ_p &y) const
double & convert (double &x, const NTL::ZZ_p &y) const
template<class ANY> NTL::ZZ_p & init (NTL::ZZ_p &x, const ANY &y) const
template<class ANY> ANY & convert (ANY &x, const NTL::ZZ_p &y) const

Constructor & Destructor Documentation

NTL_ZZ_p integer    p,
size_t    e = 1
[inline]
 


Member Function Documentation

ANY& convert ANY &    x,
const NTL::ZZ_p &    y
const [inline]
 

double& convert double &    x,
const NTL::ZZ_p &    y
const [inline]
 

integer& convert integer   x,
const NTL::ZZ_p &    y
const [inline]
 

Conversion of field element to an integer. This function assumes the output field element x has already been constructed, but that it is not already initialized. This done by converting to a string : inefficient but correct.

Returns:
reference to integer.
Parameters:
x  reference to integer to contain output (reference returned).
y  constant reference to field element.

NTL::ZZ& convert NTL::ZZ &    x,
const NTL::ZZ_p &    y
const [inline]
 

Specialization for NTL::ZZ

Returns:
reference to NTL::ZZ
Parameters:
x  NTL::ZZ to contain output (reference returned).
y  constant reference to field element.

NTL::ZZ_p& init NTL::ZZ_p &    x,
const ANY &    y
const [inline]
 

NTL::ZZ_p& init NTL::ZZ_p &    x,
const NTL::ZZ &    y
const [inline]
 

Specialization for NTL::ZZ

Returns:
reference to field element.
Parameters:
x  field element to contain output (reference returned)
y  NTL::ZZ.

NTL::ZZ_p& init NTL::ZZ_p &    x,
const double &    y
const [inline]
 

NTL::ZZ_p& init NTL::ZZ_p &    x,
const integer   y
const [inline]
 


Generated on Mon Jun 20 09:16:55 2005 for linbox by doxygen1.2.18