linbox
Data Structures | Namespaces
ntl-ZZ_p.h File Reference

NO DOC. More...

#include <sys/time.h>
#include "linbox/linbox-config.h"
#include "linbox/field/unparametric.h"
#include "linbox/randiter/unparametric.h"
#include "linbox/field/field-traits.h"
#include <NTL/ZZ_p.h>

Data Structures

struct  NTL_ZZ_p
 Wrapper of zz_p from NTL. More...

Namespaces

namespace  LinBox
 

Namespace in which all linbox code resides.


Functions

NTL_ZZ_p

Arbitrary precision integers modulus a positive integer.

While NTL allows any integer to serve as the modulus, only prime moduli yield fields. Therefore, while arthmetic operations may be valid for any modulus, only prime moduli are supported in this implementation. The primality of the modulus will not be checked, so it is the programmer's responsibility to supply a prime modulus. These specializations allow the UnparametricField template class to be used to wrap NTL's ZZ_p class as a LinBox field.

template<>
NTL::ZZ_p & Caster (NTL::ZZ_p &x, const integer &y)
 Initialization of field element from an integer.
template<>
NTL::ZZ_p & Caster (NTL::ZZ_p &x, const double &y)
 Initialization of field element from an integer.
template<>
NTL::ZZ_p & Caster (NTL::ZZ_p &x, const int &y)
 Initialization of field element from an integer.
template<>
NTL::ZZ_p & Caster (NTL::ZZ_p &x, const unsigned long &y)
 Initialization of field element from an integer.
template<>
NTL::ZZ_p & Caster (NTL::ZZ_p &x, const unsigned int &y)
 Initialization of field element from an integer.
template<>
integer & Caster (integer &x, const NTL::ZZ_p &y)
 Conversion of field element to an integer.
template<>
double & Caster (double &x, const NTL::ZZ_p &y)
 Conversion of field element to an integer.

Detailed Description

NO DOC.