source: git/kernel/splist.h @ abe5c8

fieker-DuValspielwiese
Last change on this file since abe5c8 was f599a46, checked in by mlee <martinlee84@…>, 13 years ago
moved spectrum.cc,.h and splist.cc,.h again to kernel commented out stuff related to lists and functions in ipshell.cc
  • Property mode set to 100644
File size: 2.4 KB
Line 
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/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
35class spectrumPolyNode
36{
37public:
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
56class spectrumPolyList
57{
58public:
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// ----------------------------------------------------------------------------
Note: See TracBrowser for help on using the repository browser.