source: git/kernel/lpolynomial.h @ cd7c3e1

spielwiese
Last change on this file since cd7c3e1 was cd7c3e1, checked in by Christian Eder, 15 years ago
fitting to lists.h git-svn-id: file:///usr/local/Singular/svn/trunk@11271 2c84dea3-7e68-4137-9b89-c4e89433aadc
  • Property mode set to 100644
File size: 1.4 KB
Line 
1/****************************************
2*  Computer Algebra System SINGULAR     *
3****************************************/
4/* $Id: lpolynomial.h,v 1.3 2008-12-26 13:52:15 ederc Exp $ */
5/*
6* ABSTRACT: labeled polynomial interface
7*/
8#ifndef LPOLYNOMIAL_HEADER
9#define LPOLYNOMIAL_HEADER
10
11#ifdef HAVE_F5
12
13
14/*
15=============================
16class of a labeled polynomial
17=============================
18*/
19class LPoly
20{
21        private:
22                poly    term; //term of signature
23                long    index; //index of signature
24                poly    polynomial; //standard polynomial data
25                bool    del; //for deletion in TopReduction Subalgorithm
26        public:
27                void    setPoly(poly* p);
28                poly    getPoly() const;
29                void    setTerm(poly* t);
30                poly    getTerm() const;
31                void    setIndex(long* i);
32                long    getIndex() const;
33                void    setDel(bool b);
34                bool    getDel() const;
35                int     compare(const LPoly& lp) const;
36                void    set(poly* t, long* i, poly* p);
37                LPoly*  get();
38};
39
40
41/*
42===============================
43structure of the critical pairs
44===============================
45*/
46struct CPair
47{
48        LPoly*  cp1;   // first  component
49        LPoly*  cp2;   // second component
50};
51
52
53#endif
54#endif
Note: See TracBrowser for help on using the repository browser.