|
linbox
|
NO DOC. More...
#include <time.h>#include "linbox/linbox-config.h"#include "linbox/util/debug.h"#include <NTL/lzz_p.h>#include <NTL/ZZ.h>#include "linbox/field/unparametric.h"#include "linbox/randiter/unparametric.h"#include "linbox/field/field-traits.h"#include "linbox/integer.h"Data Structures | |
| struct | NTL_zz_p |
| long ints modulo a positive integer. More... | |
| struct | ClassifyRing< Field > |
| Default ring category. More... | |
Namespaces | |
| LinBox | |
| Namespace in which all linbox code resides. | |
Functions | |
| template<> | |
| NTL::zz_p & | Caster (NTL::zz_p &x, const Integer &y) |
| Initialization of field element from an integer. More... | |
| template<> | |
| Integer & | Caster (Integer &x, const NTL::zz_p &y) |
| Conversion of field element to an Integer. More... | |
NO DOC.
| NTL::zz_p& Givaro::Caster | ( | NTL::zz_p & | x, |
| const Integer & | y | ||
| ) |
Initialization of field element from an integer.
This Uses NTL's to_zz_p function.
| x | field element to contain output (reference returned). |
| y | Integer. |
| 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. 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. |
1.8.11