linbox
Data Structures | Namespaces | Functions
ntl-zz_p.h File Reference

NO DOC. More...

#include <sys/time.h>
#include <NTL/ZZ_p.h>
#include <NTL/ZZ.h>
#include "linbox/linbox-config.h"
#include "linbox/util/debug.h"
#include <givaro/zring.h>
#include "linbox/field/field-traits.h"
#include "linbox/vector/blas-vector.h"
#include "linbox/integer.h"
+ Include dependency graph for ntl-zz_p.h:

Data Structures

struct  NTL_ZZ_p
 Wrapper of zz_p from NTL. More...
 
struct  ClassifyRing< Field >
 Default ring category. More...
 
class  UnparametricRandIter< NTL::ZZ_p >
 Constructor for random field element generator. More...
 

Namespaces

 LinBox
 Namespace in which all linbox code resides.
 

Functions

template<>
Integer & Caster (Integer &x, const NTL::ZZ_p &y)
 Conversion of field element to an Integer. More...
 
template<>
NTL::ZZ_p & Caster (NTL::ZZ_p &x, const Integer &y)
 Initialization of field element from an Integer. More...
 

Detailed Description

NO DOC.

Function Documentation

◆ Caster()

Integer& Givaro::Caster ( Integer &  x,
const NTL::ZZ_p &  y 
)

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 std::string : inefficient but correct.

Returns
reference to Integer.
Parameters
xreference to Integer to contain output (reference returned).
yconstant reference to field element.
Examples:
examples/power_rank.C.