Main Page
Data Structures
Files
File List
Globals
kernel
spectrum
splist.h
Go to the documentation of this file.
1
// ----------------------------------------------------------------------------
2
// splist.h
3
// begin of file
4
// Stephan Endrass, endrass@mathematik.uni-mainz.de
5
// 23.7.99
6
// ----------------------------------------------------------------------------
7
8
// ----------------------------------------------------------------------------
9
// Description: the class spectrumPolyList is to hold monomials
10
// and their normal forms with respect to a given standard basis
11
// and a given ordering. On this list we run a standard basis
12
// conversion algorithm to compute the spectrum
13
// ----------------------------------------------------------------------------
14
15
#ifndef SPLIST_H
16
#define SPLIST_H
17
18
#include <
kernel/spectrum/npolygon.h
>
19
20
/*enum spectrumState
21
{
22
spectrumOK,
23
spectrumZero,
24
spectrumBadPoly,
25
spectrumNoSingularity,
26
spectrumNotIsolated,
27
spectrumDegenerate,
28
spectrumWrongRing,
29
spectrumNoHC,
30
spectrumUnspecErr
31
};*/
//TODO move to Singular
32
33
// ----------------------------------------------------------------------------
34
35
class
spectrumPolyNode
36
{
37
public
:
38
39
spectrumPolyNode
*
next
;
40
poly
mon
;
41
Rational
weight
;
42
poly
nf
;
43
ring
r
;
44
45
spectrumPolyNode
( );
46
spectrumPolyNode
(
spectrumPolyNode
*,
poly
,
const
Rational
&,
poly
,
const
ring);
47
~spectrumPolyNode
( );
48
49
void
copy_zero
(
void
);
50
void
copy_shallow
(
spectrumPolyNode
*,
poly
,
const
Rational
&,
poly
,
const
ring);
51
void
copy_shallow
(
spectrumPolyNode
& );
52
};
53
54
// ----------------------------------------------------------------------------
55
56
class
spectrumPolyList
57
{
58
public
:
59
60
spectrumPolyNode
*
root
;
61
int
N
;
62
newtonPolygon
*
np
;
63
64
spectrumPolyList
( );
65
spectrumPolyList
(
newtonPolygon
* );
66
~
spectrumPolyList
( );
67
68
void
copy_zero
(
void
);
69
void
copy_shallow
(
spectrumPolyNode
*,
int
,
newtonPolygon
* );
70
void
copy_shallow
(
spectrumPolyList
& );
71
72
void
insert_node(
poly
,
poly
,
const
ring );
73
void
delete_node(
spectrumPolyNode
** );
74
75
void
delete_monomial(
poly
,
const
ring );
76
77
//spectrumState spectrum( lists*,int );
78
79
#ifdef SPLIST_PRINT
80
friend
ostream &
operator <<
( ostream&,
const
spectrumPolyList
& );
81
#endif
82
};
83
84
#endif
/* SPLIST_H */
85
86
// ----------------------------------------------------------------------------
87
// splist.h
88
// end of file
89
// ----------------------------------------------------------------------------
spectrumPolyNode::next
spectrumPolyNode * next
Definition:
splist.h:39
spectrumPolyNode::weight
Rational weight
Definition:
splist.h:41
spectrumPolyNode::~spectrumPolyNode
~spectrumPolyNode()
Definition:
splist.cc:99
spectrumPolyNode::mon
poly mon
Definition:
splist.h:40
spectrumPolyList::np
newtonPolygon * np
Definition:
splist.h:62
newtonPolygon
Definition:
npolygon.h:61
npolygon.h
spectrumPolyList::root
spectrumPolyNode * root
Definition:
splist.h:60
Rational
Definition:
GMPrat.h:14
spectrumPolyNode::copy_shallow
void copy_shallow(spectrumPolyNode *, poly, const Rational &, poly, const ring)
Definition:
splist.cc:53
spectrumPolyList::N
int N
Definition:
splist.h:61
spectrumPolyNode::spectrumPolyNode
spectrumPolyNode()
Definition:
splist.cc:80
spectrumPolyNode::nf
poly nf
Definition:
splist.h:42
spectrumPolyNode::copy_zero
void copy_zero(void)
Definition:
splist.cc:40
spectrumPolyNode::r
ring r
Definition:
splist.h:43
spectrumPolyNode
Definition:
splist.h:35
poly
polyrec * poly
Definition:
hilb.h:10
spectrumPolyList
Definition:
splist.h:56
operator<<
ostream & operator<<(ostream &s, const spectrum &spec)
Definition:
semic.cc:249
Generated on Tue Feb 23 2016 02:55:40 by
doxygen 1.8.11
for
Singular debian-4.0.3+ds-1