Changeset a0350e9 in git for kernel/lpolynomial.h
 Timestamp:
 Jan 15, 2009, 6:44:24 PM (15 years ago)
 Branches:
 (u'spielwiese', '2fa36c576e6a4ddbb1093b43c7f8e9835e17e52a')
 Children:
 2653d3c2809f0b96d6da699e54066fdb07623b92
 Parents:
 5ec4a8bc9c1e8e23c5f5f95235a4e4839659b682
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

kernel/lpolynomial.h
r5ec4a8 ra0350e9 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: lpolynomial.h,v 1. 4 20081227 13:50:06ederc Exp $ */4 /* $Id: lpolynomial.h,v 1.5 20090115 17:44:24 ederc Exp $ */ 5 5 /* 6 6 * ABSTRACT: labeled polynomial interface … … 10 10 11 11 #ifdef HAVE_F5 12 /* 13 ========================================================= 14 ========================================================= 15 classes for labeled polynomials/pairs/Spolynomials in F5 16 ========================================================= 17 ========================================================= 18 */ 19 class LPoly; 20 class CPair; 12 21 13 22 … … 20 29 private: 21 30 poly term; //term of signature 22 longindex; //index of signature31 int index; //index of signature 23 32 poly polynomial; //standard polynomial data 24 33 bool del; //for deletion in TopReduction Subalgorithm 25 34 public: 26 LPoly(poly*t, long* i,poly* p);35 LPoly(poly*t,int* i,poly* p); 27 36 void setPoly(poly* p); 28 37 poly* getPoly(); 29 38 void setTerm(poly* t); 30 39 poly* getTerm(); 31 void setIndex( long* i);32 long*getIndex();40 void setIndex(int* i); 41 int* getIndex(); 33 42 void setDel(bool b); 34 43 bool getDel() const; 35 void set(poly* t, long* i, poly* p);44 void set(poly* t, int* i, poly* p); 36 45 LPoly* get(); 37 46 }; … … 43 52 =============================== 44 53 */ 45 struct CPair { 46 LPoly* cp1; // first component 47 LPoly* cp2; // second component 54 class CPair { 55 private: 56 int deg; // total degree of the critical pair 57 poly t1; // first term for label 58 LPoly* lp1; // first labeled poly 59 poly t2; // second term for label 60 LPoly* lp2; // second labeled poly 61 public: 62 CPair(int degree, poly term1, LPoly* lpoly1, poly term2, LPoly* lpoly2); 63 int getDeg(); 64 poly getT1(); 65 poly getLp1Poly(); 66 poly getLp1Term(); 67 int getLp1Index(); 68 poly getT2(); 69 poly getLp2Poly(); 70 poly getLp2Term(); 71 int getLp2Index(); 48 72 }; 49 73
Note: See TracChangeset
for help on using the changeset viewer.