LinBox fields, field wrappers, field construction tools.
More...
|
template<> |
NTL::ZZ_p & | Caster (NTL::ZZ_p &x, const Integer &y) |
| Initialization of field element from an Integer. More...
|
|
LinBox fields, field wrappers, field construction tools.
LinBox fields implement the concept which is specified in the field archetype.
Some implement a basic ring concept rather than a field (inv and div are partial functions). Ring representations with additional functions are also found in the ring directory.
◆ Caster()
NTL::ZZ_p& Givaro::Caster |
( |
NTL::ZZ_p & |
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. This done by converting to a std::string : inefficient but correct.
- Returns
- reference to field element.
- Parameters
-
x | field element to contain output (reference returned). |
y | Integer. |
- Examples
- examples/power_rank.C.