Changeset cd7c3e1 in git for kernel/lpolynomial.cc
- Timestamp:
- Dec 26, 2008, 2:52:15 PM (15 years ago)
- Branches:
- (u'spielwiese', '8e0ad00ce244dfd0756200662572aef8402f13d5')
- Children:
- db0c26499ac93c779f02182a98792ec615793f61
- Parents:
- d72b11bc8b23f633cdb4f322bbbbab31c23597cb
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/lpolynomial.cc
rd72b11 rcd7c3e1 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: lpolynomial.cc,v 1. 2 2008-11-27 17:18:45ederc Exp $ */4 /* $Id: lpolynomial.cc,v 1.3 2008-12-26 13:51:50 ederc Exp $ */ 5 5 /* 6 6 * ABSTRACT: lpolynomial definition … … 24 24 #include "f5gb.h" 25 25 #include "lpolynomial.h" 26 #include "l plist.h"26 #include "lists.h" 27 27 /* 28 28 ================================================================ … … 30 30 ================================================================ 31 31 */ 32 void LPoly::setPoly(poly p)32 void LPoly::setPoly(poly* p) 33 33 { 34 polynomial = p;34 polynomial = *p; 35 35 } 36 36 37 void LPoly::setTerm(poly t) {38 term = t;37 void LPoly::setTerm(poly* t) { 38 term = *t; 39 39 } 40 40 41 void LPoly::setIndex(long i) {42 index = i;41 void LPoly::setIndex(long* i) { 42 index = *i; 43 43 } 44 44 … … 48 48 } 49 49 50 void LPoly::setNext(LPoly* l) { 51 next = l; 52 } 53 54 poly LPoly::getPoly() { 50 poly LPoly::getPoly() const { 55 51 return polynomial; 56 52 } 57 53 58 poly LPoly::getTerm() {54 poly LPoly::getTerm() const { 59 55 return term; 60 56 } 61 57 62 long LPoly::getIndex() {58 long LPoly::getIndex() const { 63 59 return index; 64 60 } 65 61 66 bool LPoly::getDel() {62 bool LPoly::getDel() const { 67 63 return del; 68 64 } 69 65 70 LPoly* LPoly::getNext() { 71 return next; 66 void LPoly::set(poly* t, long* i, poly* p) { 67 this->setTerm(t); 68 this->setIndex(i); 69 this->setPoly(p); 72 70 } 73 71 … … 77 75 ===================================================== 78 76 */ 79 int LPoly::compare(const LPoly& lp) {77 int LPoly::compare(const LPoly& lp) const { 80 78 if(index > lp.index) { 81 79 return 1; … … 87 85 } 88 86 89 void LPoly::get() { 90 Print("Label: "); 91 pWrite(getTerm()); 92 Print(" %d\n",getIndex()); 87 LPoly* LPoly::get() { 88 return this; 93 89 } 94 90 #endif
Note: See TracChangeset
for help on using the changeset viewer.