linbox
|
NO DOC. More...
#include "linbox/linbox-config.h"
#include <NTL/tools.h>
#include <NTL/RR.h>
#include "linbox/util/debug.h"
#include "linbox/field/unparametric.h"
#include "linbox/randiter/unparametric.h"
#include "linbox/field/field-traits.h"
#include "linbox/integer.h"
Data Structures | |
struct | ClassifyRing< Field > |
Default ring category. More... | |
Namespaces | |
LinBox | |
Namespace in which all linbox code resides. | |
Functions | |
template<> | |
NTL::RR & | Caster (NTL::RR &x, const Integer &y) |
Initialization of field element from an integer. More... | |
template<> | |
Integer & | Caster (Integer &x, const NTL::RR &y) |
Conversion of field element to an integer. More... | |
NO DOC.
NTL::RR& Givaro::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.
x | field element to contain output (reference returned). |
y | integer. |
Integer& Givaro::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.
x | reference to integer to contain output (reference returned). |
y | constant reference to field element. |