source: git/factory/ExtensionInfo.cc

spielwiese
Last change on this file was 9f7665, checked in by Oleksandr Motsak <motsak@…>, 10 years ago
Removed HAVE_CONFIG guards fix: fixed the inclusion of configure-generated *config.h's
  • Property mode set to 100644
File size: 2.1 KB
RevLine 
[7bf145]1/*****************************************************************************\
[806c18]2 * Computer Algebra System SINGULAR
[7bf145]3\*****************************************************************************/
4/** @file ExtensionInfo.cc
[806c18]5 *
6 * This file provides member functions for ExtensionInfo
[7bf145]7 *
8 * @author Martin Lee
9 *
10 **/
11/*****************************************************************************/
12
[9f7665]13
[e4fe2b]14#include "config.h"
[9f7665]15
[7bf145]16
17#include "ExtensionInfo.h"
18
19ExtensionInfo::ExtensionInfo (const bool extension)
20{
21  m_alpha= Variable (1);
22  m_beta= Variable (1);
23  m_gamma= CanonicalForm ();
24  m_delta= CanonicalForm ();
25  m_GFDegree= 1;
26  m_GFName= 'Z';
27  m_extension= extension;
28}
29
[806c18]30ExtensionInfo::ExtensionInfo (const Variable& alpha, const Variable& beta,
31                              const CanonicalForm& gamma, const CanonicalForm&
[7bf145]32                              delta, const int nGFDegree, const char cGFName,
33                              const bool extension)
34{
35  m_alpha= alpha;
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
[806c18]44ExtensionInfo::ExtensionInfo (const Variable& alpha, const Variable& beta,
45                              const CanonicalForm& gamma, const CanonicalForm&
[7bf145]46                              delta)
47{
48  m_alpha= alpha;
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{
59  m_alpha= alpha;
60  m_beta= Variable (1);
61  m_gamma= CanonicalForm ();
62  m_delta= CanonicalForm ();
63  m_GFDegree= 0;
64  m_GFName= 'Z';
65  m_extension= extension;
66}
67
68ExtensionInfo::ExtensionInfo (const Variable& alpha)
69{
70  m_alpha= alpha;
71  m_beta=  Variable (1);
72  m_gamma= CanonicalForm ();
73  m_delta= CanonicalForm ();
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);
84  m_gamma= CanonicalForm ();
85  m_delta= CanonicalForm ();
86  m_GFDegree= nGFDegree;
87  m_GFName= cGFName;
88  m_extension= extension;
89}
90
Note: See TracBrowser for help on using the repository browser.