My Project
Loading...
Searching...
No Matches
ExtensionInfo.cc
Go to the documentation of this file.
1/*****************************************************************************\
2 * Computer Algebra System SINGULAR
3\*****************************************************************************/
4/** @file ExtensionInfo.cc
5 *
6 * This file provides member functions for ExtensionInfo
7 *
8 * @author Martin Lee
9 *
10 **/
11/*****************************************************************************/
12
13
14#include "config.h"
15
16
17#include "ExtensionInfo.h"
18
19ExtensionInfo::ExtensionInfo (const bool extension)
20{
21 m_alpha= Variable (1);
22 m_beta= Variable (1);
25 m_GFDegree= 1;
26 m_GFName= 'Z';
27 m_extension= extension;
28}
29
31 const CanonicalForm& gamma, const CanonicalForm&
32 delta, const int nGFDegree, const char cGFName,
33 const bool extension)
34{
36 m_beta= beta;
37 m_gamma= gamma;
38 m_delta= delta;
39 m_GFDegree= nGFDegree;
40 m_GFName= cGFName;
41 m_extension= extension;
42}
43
45 const CanonicalForm& gamma, const CanonicalForm&
46 delta)
47{
49 m_beta= beta;
50 m_gamma= gamma;
51 m_delta= delta;
52 m_GFDegree= 0;
53 m_GFName= 'Z';
54 m_extension= true;
55}
56
57ExtensionInfo::ExtensionInfo (const Variable& alpha, const bool extension)
58{
60 m_beta= Variable (1);
63 m_GFDegree= 0;
64 m_GFName= 'Z';
65 m_extension= extension;
66}
67
69{
71 m_beta= Variable (1);
74 m_GFDegree= 1;
75 m_GFName= 'Z';
76 m_extension= true;
77}
78
79ExtensionInfo::ExtensionInfo (const int nGFDegree, const char cGFName, const
80 bool extension)
81{
82 m_alpha= Variable (1);
83 m_beta= Variable (1);
86 m_GFDegree= nGFDegree;
87 m_GFName= cGFName;
88 m_extension= extension;
89}
90
This file provides a class to store information about finite fields and extensions thereof.
factory's main class
Definition: canonicalform.h:86
CanonicalForm m_delta
a primitive element of or 1
Definition: ExtensionInfo.h:60
int m_GFDegree
GF degree or 1.
Definition: ExtensionInfo.h:62
ExtensionInfo(const bool extension)
as initial field, if extension is true we are in some GF
bool m_extension
indicates if we are in an extension of some initial field
Definition: ExtensionInfo.h:66
char m_GFName
name of GF variable
Definition: ExtensionInfo.h:64
Variable m_beta
an algebraic variable or Variable (1)
Definition: ExtensionInfo.h:56
Variable m_alpha
an algebraic variable or Variable (1)
Definition: ExtensionInfo.h:54
CanonicalForm m_gamma
a primitive element of or 1
Definition: ExtensionInfo.h:58
factory's class for variables
Definition: variable.h:33
Variable alpha
Definition: facAbsBiFact.cc:51
Variable beta
Definition: facAbsFact.cc:95