linbox
Givaro Namespace Reference

Functions

template<>
NTL::GF2E & Caster (NTL::GF2E &x, const Integer &y)
 
template<>
NTL::GF2E & Caster (NTL::GF2E &x, const double &y)
 
template<>
Integer & Caster (Integer &x, const NTL::GF2E &y)
 
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)
 
template<>
Integer & Caster (Integer &x, const NTL::zz_p &y)
 Conversion of field element to an Integer.
 
template<>
NTL::zz_pE & Caster (NTL::zz_pE &x, const Integer &y)
 
template<>
NTL::zz_pE & Caster (NTL::zz_pE &x, const double &y)
 
template<>
Integer & Caster (Integer &x, const NTL::zz_pE &y)
 
template<>
NTL::RR & Caster (NTL::RR &x, const Integer &y)
 Initialization of field element from an integer.
 
template<>
NTL::RR & Caster (NTL::RR &x, const double &y)
 
template<>
NTL::RR & Caster (NTL::RR &x, const int32_t &y)
 
template<>
NTL::RR & Caster (NTL::RR &x, const int64_t &y)
 
template<>
NTL::RR & Caster (NTL::RR &x, const uint32_t &y)
 
template<>
NTL::RR & Caster (NTL::RR &x, const uint64_t &y)
 
template<>
Integer & Caster (Integer &x, const NTL::RR &y)
 Conversion of field element to an integer.
 
template<>
NTL::ZZ & Caster (NTL::ZZ &x, const Integer &y)
 Initialization of field element from an integer.
 
template<>
NTL::ZZ & Caster (NTL::ZZ &x, const double &y)
 
template<>
NTL::ZZ & Caster (NTL::ZZ &x, const int32_t &y)
 
template<>
NTL::ZZ & Caster (NTL::ZZ &x, const int64_t &y)
 
template<>
NTL::ZZ & Caster (NTL::ZZ &x, const uint32_t &y)
 
template<>
NTL::ZZ & Caster (NTL::ZZ &x, const uint64_t &y)
 
template<>
Integer & Caster (Integer &x, const NTL::ZZ &y)
 Conversion of field element to 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)
 
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)
 
template<>
NTL::ZZ_p & Caster (NTL::ZZ_p &x, const int &y)
 
template<>
NTL::ZZ_p & Caster (NTL::ZZ_p &x, const unsigned long &y)
 
template<>
NTL::ZZ_p & Caster (NTL::ZZ_p &x, const unsigned int &y)
 
template<>
NTL::ZZ_pE & Caster (NTL::ZZ_pE &x, const Integer &y)
 
template<>
NTL::ZZ_pE & Caster (NTL::ZZ_pE &x, const double &y)
 
Integer & Caster (Integer &c, const NTL::ZZ_pE &e)
 

Function Documentation

◆ Caster() [1/32]

template<>
NTL::GF2E & Caster ( NTL::GF2E & x,
const Integer & y )

◆ Caster() [2/32]

template<>
NTL::GF2E & Caster ( NTL::GF2E & x,
const double & y )

◆ Caster() [3/32]

template<>
Integer & Caster ( Integer & x,
const NTL::GF2E & y )

◆ Caster() [4/32]

template<>
NTL::zz_p & Caster ( NTL::zz_p & x,
const Integer & y )

Initialization of field element from an integer.

This Uses NTL's to_zz_p function.

Returns
reference to field element.
Parameters
xfield element to contain output (reference returned).
yInteger.

◆ Caster() [5/32]

template<>
NTL::zz_p & Caster ( NTL::zz_p & x,
const double & y )

◆ Caster() [6/32]

template<>
Integer & 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. For now, this is done by converting the element type to a C++ long and then to the Integer type through the use of static cast and NTL's to_long function. This, of course, assumes such static casts are possible. This function should be changed in the future to avoid using long.

Returns
reference to Integer.
Parameters
xreference to Integer to contain output (reference returned).
yconstant reference to field element.

◆ Caster() [7/32]

template<>
NTL::zz_pE & Caster ( NTL::zz_pE & x,
const Integer & y )

◆ Caster() [8/32]

template<>
NTL::zz_pE & Caster ( NTL::zz_pE & x,
const double & y )

◆ Caster() [9/32]

template<>
Integer & Caster ( Integer & x,
const NTL::zz_pE & y )

◆ Caster() [10/32]

template<>
NTL::RR & Caster ( NTL::RR & x,
const Integer & y )

Initialization of field element from an integer.

Behaves like C++ allocator construct. This function assumes the output field element x has already been constructed, but that it is not already initialized. For now, this is done by converting the integer type to a C++ long and then to the element type through the use of static cast and NTL's to_RR function. This, of course, assumes such static casts are possible. This function should be changed in the future to avoid using long.

Returns
reference to field element.
Parameters
xfield element to contain output (reference returned).
yinteger.

◆ Caster() [11/32]

template<>
NTL::RR & Caster ( NTL::RR & x,
const double & y )

◆ Caster() [12/32]

template<>
NTL::RR & Caster ( NTL::RR & x,
const int32_t & y )

◆ Caster() [13/32]

template<>
NTL::RR & Caster ( NTL::RR & x,
const int64_t & y )

◆ Caster() [14/32]

template<>
NTL::RR & Caster ( NTL::RR & x,
const uint32_t & y )

◆ Caster() [15/32]

template<>
NTL::RR & Caster ( NTL::RR & x,
const uint64_t & y )

◆ Caster() [16/32]

template<>
Integer & Caster ( Integer & x,
const NTL::RR & 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. For now, this is done by converting the element type to a C++ long and then to the integer type through the use of static cast and NTL's to_long function. This, of course, assumes such static casts are possible. This function should be changed in the future to avoid using long.

Returns
reference to integer.
Parameters
xreference to integer to contain output (reference returned).
yconstant reference to field element.

◆ Caster() [17/32]

template<>
NTL::ZZ & Caster ( NTL::ZZ & x,
const Integer & y )
inline

Initialization of field element from an integer.

Behaves like C++ allocator construct. This function assumes the output field element x has already been constructed, but that it is not already initialized. For now, this is done by converting the integer type to a C++ long and then to the element type through the use of static cast and NTL's to_ZZ function. This, of course, assumes such static casts are possible. This function should be changed in the future to avoid using long.

Returns
reference to field element.
Parameters
xfield element to contain output (reference returned).
yinteger.

◆ Caster() [18/32]

template<>
NTL::ZZ & Caster ( NTL::ZZ & x,
const double & y )
inline

◆ Caster() [19/32]

template<>
NTL::ZZ & Caster ( NTL::ZZ & x,
const int32_t & y )
inline

◆ Caster() [20/32]

template<>
NTL::ZZ & Caster ( NTL::ZZ & x,
const int64_t & y )
inline

◆ Caster() [21/32]

template<>
NTL::ZZ & Caster ( NTL::ZZ & x,
const uint32_t & y )
inline

◆ Caster() [22/32]

template<>
NTL::ZZ & Caster ( NTL::ZZ & x,
const uint64_t & y )
inline

◆ Caster() [23/32]

template<>
Integer & Caster ( Integer & x,
const NTL::ZZ & y )
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. For now, this is done by converting the element type to a C++ long and then to the integer type through the use of static cast and NTL's to_long function. This, of course, assumes such static casts are possible. This function should be changed in the future to avoid using long.

Returns
reference to integer.
Parameters
xreference to integer to contain output (reference returned).
yconstant reference to field element.

◆ Caster() [24/32]

template<>
Integer & 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.

◆ Caster() [25/32]

template<>
double & Caster ( double & x,
const NTL::ZZ_p & y )

◆ Caster() [26/32]

template<>
NTL::ZZ_p & Caster ( NTL::ZZ_p & x,
const double & y )

◆ Caster() [27/32]

template<>
NTL::ZZ_p & Caster ( NTL::ZZ_p & x,
const int & y )

◆ Caster() [28/32]

template<>
NTL::ZZ_p & Caster ( NTL::ZZ_p & x,
const unsigned long & y )

◆ Caster() [29/32]

template<>
NTL::ZZ_p & Caster ( NTL::ZZ_p & x,
const unsigned int & y )

◆ Caster() [30/32]

template<>
NTL::ZZ_pE & Caster ( NTL::ZZ_pE & x,
const Integer & y )

◆ Caster() [31/32]

template<>
NTL::ZZ_pE & Caster ( NTL::ZZ_pE & x,
const double & y )

◆ Caster() [32/32]

Integer & Caster ( Integer & c,
const NTL::ZZ_pE & e )