![]() |
My Project
|
This file implements functions to map between extensions of finite fields. More...
#include "config.h"#include "cf_assert.h"#include "debug.h"#include "canonicalform.h"#include "cf_util.h"#include "imm.h"#include "cf_iter.h"#include "NTLconvert.h"#include "FLINTconvert.h"#include "cf_cyclo.h"#include "cf_map_ext.h"Go to the source code of this file.
Functions | |
| int | findItem (const CFList &list, const CanonicalForm &item) |
| helper function More... | |
| CanonicalForm | getItem (const CFList &list, const int &pos) |
| helper function More... | |
| static CanonicalForm | mapUp (const Variable &alpha, const Variable &beta) |
| static CanonicalForm | mapDown (const CanonicalForm &F, const Variable &alpha, const CanonicalForm &G, CFList &source, CFList &dest) |
| the CanonicalForm G is the output of map_up, returns F considered as an element over | |
| static CanonicalForm | GF2FalphaHelper (const CanonicalForm &F, const Variable &alpha) |
| helper function More... | |
| CanonicalForm | GF2FalphaRep (const CanonicalForm &F, const Variable &alpha) |
| changes representation by primitive element to representation by residue classes modulo a Conway polynomial More... | |
| CanonicalForm | Falpha2GFRep (const CanonicalForm &F) |
| change representation by residue classes modulo a Conway polynomial to representation by primitive element More... | |
| static CanonicalForm | GFPowUp (const CanonicalForm &F, int k) |
| GF_map_up helper. More... | |
| CanonicalForm | GFMapUp (const CanonicalForm &F, int k) |
| maps a polynomial over | |
| static CanonicalForm | GFPowDown (const CanonicalForm &F, int k) |
| GFMapDown helper. More... | |
| CanonicalForm | GFMapDown (const CanonicalForm &F, int k) |
| maps a polynomial over | |
| static CanonicalForm | mapUp (const CanonicalForm &F, const CanonicalForm &G, const Variable &alpha, const CanonicalForm &H, CFList &source, CFList &dest) |
| map F in | |
| CanonicalForm | primitiveElement (const Variable &alpha, Variable &beta, bool &fail) |
| determine a primitive element of | |
| CanonicalForm | mapDown (const CanonicalForm &F, const CanonicalForm &prim_elem, const CanonicalForm &im_prim_elem, const Variable &alpha, CFList &source, CFList &dest) |
| map F from | |
| CanonicalForm | mapUp (const CanonicalForm &F, const Variable &alpha, const Variable &, const CanonicalForm &prim_elem, const CanonicalForm &im_prim_elem, CFList &source, CFList &dest) |
| map F from | |
| CanonicalForm | mapPrimElem (const CanonicalForm &primElem, const Variable &alpha, const Variable &beta) |
| compute the image of a primitive element of | |
| CanonicalForm | map (const CanonicalForm &primElem, const Variable &alpha, const CanonicalForm &F, const Variable &beta) |
| map from | |
| CanonicalForm | findMinPoly (const CanonicalForm &F, const Variable &alpha) |
| compute minimal polynomial of | |
This file implements functions to map between extensions of finite fields.
Definition in file cf_map_ext.cc.
| CanonicalForm Falpha2GFRep | ( | const CanonicalForm & | F | ) |
change representation by residue classes modulo a Conway polynomial to representation by primitive element
| [in] | F | some poly over F_p(alpha) where alpha is a root of a Conway poly |
Definition at line 203 of file cf_map_ext.cc.
| int findItem | ( | const CFList & | list, |
| const CanonicalForm & | item | ||
| ) |
helper function
Definition at line 41 of file cf_map_ext.cc.
| CanonicalForm findMinPoly | ( | const CanonicalForm & | F, |
| const Variable & | alpha | ||
| ) |
compute minimal polynomial of 
| [in] | F | an element of |
| [in] | alpha | algebraic variable |
Definition at line 640 of file cf_map_ext.cc.
| CanonicalForm getItem | ( | const CFList & | list, |
| const int & | pos | ||
| ) |
helper function
Definition at line 53 of file cf_map_ext.cc.
|
inlinestatic |
helper function
Definition at line 175 of file cf_map_ext.cc.
| CanonicalForm GF2FalphaRep | ( | const CanonicalForm & | F, |
| const Variable & | alpha | ||
| ) |
changes representation by primitive element to representation by residue classes modulo a Conway polynomial
| [in] | F | some poly over GF |
| [in] | alpha | root of a Conway poly |
Definition at line 195 of file cf_map_ext.cc.
| CanonicalForm GFMapDown | ( | const CanonicalForm & | F, |
| int | k | ||
| ) |
maps a polynomial over 

Definition at line 276 of file cf_map_ext.cc.
| CanonicalForm GFMapUp | ( | const CanonicalForm & | F, |
| int | k | ||
| ) |
maps a polynomial over 

Definition at line 240 of file cf_map_ext.cc.
|
inlinestatic |
GFMapDown helper.
Definition at line 253 of file cf_map_ext.cc.
|
inlinestatic |
GF_map_up helper.
Definition at line 229 of file cf_map_ext.cc.
| CanonicalForm map | ( | const CanonicalForm & | primElem, |
| const Variable & | alpha, | ||
| const CanonicalForm & | F, | ||
| const Variable & | beta | ||
| ) |
map from 



| [in] | primElem | primitive element of |
| [in] | alpha | algebraic variable |
| [in] | F | an element of |
| [in] | beta | algebraic variable, root of F's minimal polynomial |
Definition at line 504 of file cf_map_ext.cc.
| CanonicalForm mapDown | ( | const CanonicalForm & | F, |
| const CanonicalForm & | prim_elem, | ||
| const CanonicalForm & | im_prim_elem, | ||
| const Variable & | alpha, | ||
| CFList & | source, | ||
| CFList & | dest | ||
| ) |
map F from 



| [in] | F | poly over |
| [in] | prim_elem | primitive element of |
| [in] | im_prim_elem | image of prim_elem in |
| [in] | alpha | alg. variable |
| [in,out] | source | look up lists |
| [in,out] | dest | look up lists |
Definition at line 431 of file cf_map_ext.cc.
|
inlinestatic |
the CanonicalForm G is the output of map_up, returns F considered as an element over 


Definition at line 123 of file cf_map_ext.cc.
| CanonicalForm mapPrimElem | ( | const CanonicalForm & | primElem, |
| const Variable & | alpha, | ||
| const Variable & | beta | ||
| ) |
compute the image of a primitive element of 


| [in] | primElem | primitive element |
| [in] | alpha | algebraic variable |
| [in] | beta | algebraic variable |
Definition at line 450 of file cf_map_ext.cc.
|
inlinestatic |
map F in 

Definition at line 290 of file cf_map_ext.cc.
| CanonicalForm mapUp | ( | const CanonicalForm & | F, |
| const Variable & | alpha, | ||
| const Variable & | beta, | ||
| const CanonicalForm & | prim_elem, | ||
| const CanonicalForm & | im_prim_elem, | ||
| CFList & | source, | ||
| CFList & | dest | ||
| ) |
map F from 


| [in] | F | poly over |
| [in] | alpha | alg. variable |
| [in] | beta | alg. variable |
| [in] | prim_elem | primitive element of |
| [in] | im_prim_elem | image of prim_elem in |
| [in,out] | source | look up lists |
| [in,out] | dest | look up lists |
Definition at line 439 of file cf_map_ext.cc.
|
inlinestatic |



Definition at line 70 of file cf_map_ext.cc.
| CanonicalForm primitiveElement | ( | const Variable & | alpha, |
| Variable & | beta, | ||
| bool & | fail | ||
| ) |
determine a primitive element of 


| [in] | alpha | some algebraic variable |
| [in,out] | beta | s.a. |
| [in,out] | fail | failure due to integer factorization failure? |
Definition at line 342 of file cf_map_ext.cc.