source: git/factory/ExtensionInfo.cc @ e4fe2b

jengelh-datetimespielwiese
Last change on this file since e4fe2b was e4fe2b, checked in by Oleksandr Motsak <motsak@…>, 11 years ago
FIX: Fixed huge BUG in cf_gmp.h CHG: starting to cleanup factory
  • Property mode set to 100644
File size: 2.2 KB
Line 
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 * @internal @version \$Id$
11 *
12 **/
13/*****************************************************************************/
14
15#include "config.h"
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
30ExtensionInfo::ExtensionInfo (const Variable& alpha, const Variable& beta,
31                              const CanonicalForm& gamma, const CanonicalForm&
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
44ExtensionInfo::ExtensionInfo (const Variable& alpha, const Variable& beta,
45                              const CanonicalForm& gamma, const CanonicalForm&
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.