Loading...
Searching...
No Matches
ExtensionInfo.cc
Go to the documentation of this file.
/*****************************************************************************\
* Computer Algebra System SINGULAR
\*****************************************************************************/
/** @file ExtensionInfo.cc
*
* This file provides member functions for ExtensionInfo
*
* @author Martin Lee
*
**/
/*****************************************************************************/
#include "config.h"
#include "ExtensionInfo.h"
ExtensionInfo::ExtensionInfo (const bool extension)
{
m_alpha= Variable (1);
m_beta= Variable (1);
m_gamma= CanonicalForm ();
m_delta= CanonicalForm ();
m_GFDegree= 1;
m_GFName= 'Z';
m_extension= extension;
}
ExtensionInfo::ExtensionInfo (const Variable& alpha, const Variable& beta,
const CanonicalForm& gamma, const CanonicalForm&
delta, const int nGFDegree, const char cGFName,
const bool extension)
{
m_alpha= alpha;
m_beta= beta;
m_gamma= gamma;
m_delta= delta;
m_GFDegree= nGFDegree;
m_GFName= cGFName;
m_extension= extension;
}
ExtensionInfo::ExtensionInfo (const Variable& alpha, const Variable& beta,
const CanonicalForm& gamma, const CanonicalForm&
delta)
{
m_alpha= alpha;
m_beta= beta;
m_gamma= gamma;
m_delta= delta;
m_GFDegree= 0;
m_GFName= 'Z';
m_extension= true;
}
ExtensionInfo::ExtensionInfo (const Variable& alpha, const bool extension)
{
m_alpha= alpha;
m_beta= Variable (1);
m_gamma= CanonicalForm ();
m_delta= CanonicalForm ();
m_GFDegree= 0;
m_GFName= 'Z';
m_extension= extension;
}
ExtensionInfo::ExtensionInfo (const Variable& alpha)
{
m_alpha= alpha;
m_beta= Variable (1);
m_gamma= CanonicalForm ();
m_delta= CanonicalForm ();
m_GFDegree= 1;
m_GFName= 'Z';
m_extension= true;
}
ExtensionInfo::ExtensionInfo (const int nGFDegree, const char cGFName, const
bool extension)
{
m_alpha= Variable (1);
m_beta= Variable (1);
m_gamma= CanonicalForm ();
m_delta= CanonicalForm ();
m_GFDegree= nGFDegree;
m_GFName= cGFName;
m_extension= extension;
}
ExtensionInfo.h
This file provides a class to store information about finite fields and extensions thereof.
CanonicalForm
factory's main class
Definition canonicalform.h:86
ExtensionInfo::m_delta
CanonicalForm m_delta
a primitive element of or 1
Definition ExtensionInfo.h:60
ExtensionInfo::m_GFDegree
int m_GFDegree
GF degree or 1.
Definition ExtensionInfo.h:62
ExtensionInfo::ExtensionInfo
ExtensionInfo(const bool extension)
as initial field, if extension is true we are in some GF
Definition ExtensionInfo.cc:19
ExtensionInfo::m_extension
bool m_extension
indicates if we are in an extension of some initial field
Definition ExtensionInfo.h:66
ExtensionInfo::m_GFName
char m_GFName
name of GF variable
Definition ExtensionInfo.h:64
ExtensionInfo::m_beta
Variable m_beta
an algebraic variable or Variable (1)
Definition ExtensionInfo.h:56
ExtensionInfo::m_alpha
Variable m_alpha
an algebraic variable or Variable (1)
Definition ExtensionInfo.h:54
ExtensionInfo::m_gamma
CanonicalForm m_gamma
a primitive element of or 1
Definition ExtensionInfo.h:58
Variable
factory's class for variables
Definition factory.h:127
alpha
Variable alpha
Definition facAbsBiFact.cc:52
beta
Variable beta
Definition facAbsFact.cc:95