Changeset ce41a2e in git
- Timestamp:
- Mar 16, 2010, 8:34:46 AM (13 years ago)
- Branches:
- (u'spielwiese', '0d6b7fcd9813a1ca1ed4220cfa2b104b97a0a003')
- Children:
- 706b890c390993bb14ed93acf3c4b09775b93361
- Parents:
- ec6c521f728502456c5e851b7943d2d5202de7c2
- Location:
- kernel
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/gfan.cc
rec6c52 rce41a2e 111 111 this->numRays=0; 112 112 this->flipGB=NULL; 113 this->isIncoming=FALSE;114 113 this->next=NULL; 115 114 this->prev=NULL; … … 135 134 this->numRays=0; 136 135 this->flipGB=NULL; 137 this->isIncoming=FALSE;138 136 this->next=NULL; 139 137 this->prev=NULL; … … 255 253 } 256 254 257 inline const intvec *facet::getRef2FacetNormal() 255 inline const intvec *facet::getRef2FacetNormal() const 258 256 { 259 257 return(this->fNormal); … … 416 414 * delete(iv); 417 415 */ 418 inline intvec *facet::getFacetNormal() 416 inline intvec *facet::getFacetNormal() const 419 417 { 420 418 return ivCopy(this->fNormal); … … 423 421 424 422 /** Method to print the facet normal*/ 425 inline void facet::printNormal() 423 inline void facet::printNormal() const 426 424 { 427 425 fNormal->show(); … … 4027 4025 } 4028 4026 found = line.find("a("); 4029 // intvec *iv2=new intvec(this->numVars);4030 // if(found!=string::npos)4031 // {4032 // line.erase(0,found+2);4033 // string strweight2=line.substr(0,line.find_first_of(")"));4034 // for(int ii=0;ii<this->numVars;ii++)4035 // {4036 // string weight;4037 // weight=line.substr(0,line.find_first_of(",)"));4038 // (*iv2)[ii]=atol(weight.c_str());4039 // line.erase(0,line.find_first_of(",)")+1);4040 // }4041 // }4042 4027 4043 4028 ring newRing; 4044 4029 if(currRing->order[0]!=ringorder_a) 4045 4030 { 4046 // if(iv2!=NULL)4047 // newRing=rCopyAndAddWeight2(currRing,iv,iv2);4048 // else4049 4031 newRing=rCopyAndAddWeight(currRing,iv); 4050 4032 } 4051 4033 else 4052 4034 { 4053 // if(iv2==NULL)4054 // {4055 4035 newRing=rCopy0(currRing); 4056 4036 int length=this->numVars; … … 4063 4043 newRing->wvhdl[0]=(int*)A; 4064 4044 newRing->block1[0]=length; 4065 // }4066 // else4067 // {4068 // newRing=rCopy0(currRing);4069 // int length=this->numVars;4070 // int *A1=(int *)omAlloc0(length*sizeof(int));4071 // int *A2=(int *)omAlloc0(length*sizeof(int));4072 // for(int jj=0;jj<length;jj++)4073 // {4074 // A1[jj]=(*iv2)[jj];4075 // A2[jj]=(*iv)[jj];4076 // }4077 // omFree(newRing->wvhdl[0]);4078 // newRing->wvhdl[0]=(int*)A1;4079 // newRing->block1[0]=length;4080 // if(newRing->wvhdl[1]!=NULL)4081 // omFree(newRing->wvhdl[0]);4082 // newRing->block1[1]=length;4083 // }4084 4045 } 4085 4046 delete iv; 4086 // delete iv2;4087 4047 rComplete(newRing); 4088 4048 gc->baseRing=rCopy(newRing); -
kernel/gfan.h
rec6c52 rce41a2e 22 22 #endif 23 23 extern int gfanHeuristic; 24 // extern dd_MatrixPtr ddLinealitySpace; 25 26 // #ifdef gfanp 27 // extern static float time_getConeNormals; 28 // extern static float time_getCodim2Normals; 29 // extern static float time_flip; 30 // extern static float time_enqueue; 31 // extern static float time_computeInv; 32 // #endif 33 //ideal getGB(ideal inputIdeal); 34 // ideal gfan(ideal inputIdeal, int heuristic); 24 35 25 lists gfan(ideal inputIdeal, int heuristic); 36 //int dotProduct(intvec a, intvec b);37 //bool isParallel(intvec a, intvec b);38 26 39 27 class facet … … 70 58 */ 71 59 bool isFlippable; //**flippable facet? */ 72 bool isIncoming; //Is the facet incoming or outgoing in the reverse search?60 //bool isIncoming; //Is the facet incoming or outgoing in the reverse search? No longer in use 73 61 facet *next; //Pointer to next facet 74 62 facet *prev; //Pointer to predecessor. Needed for the SearchList in noRevS … … 93 81 // inline bool operator==(const facet *f,const facet *g); 94 82 /** \brief Comparison of facets*/ 95 inline bool areEqual(facet *f, facet *g); 83 // inline bool areEqual(facet *f, facet *g);//Now static 96 84 /** Stores the facet normal \param intvec*/ 97 85 inline void setFacetNormal(intvec *iv); 98 86 /** Returns the facet normal */ 99 inline intvec *getFacetNormal() ;87 inline intvec *getFacetNormal() const; 100 88 /** Return a reference to the facet normal*/ 101 inline const intvec *getRef2FacetNormal() ;89 inline const intvec *getRef2FacetNormal() const; 102 90 /** Method to print the facet normal*/ 103 inline void printNormal() ;91 inline void printNormal() const; 104 92 /** Store the flipped GB*/ 105 93 inline void setFlipGB(ideal I); … … 136 124 { 137 125 private: 138 //ring rootRing; //good to know this -> generic walk139 126 ideal inputIdeal; //the original 140 127 ring baseRing; //the basering of the cone … … 272 259 static bool isMonomial(const ideal &I); 273 260 static bool ivAreEqual(const intvec &a, const intvec &b); 274 static bool areEqual2(facet *f, facet *g);275 static bool areEqual( facet *f, 261 static bool areEqual2(facet *f, facet *g); 262 static bool areEqual( facet *f, facet *g); 276 263 // bool iv64isStrictlyPositive(intvec *); 277 264 #endif
Note: See TracChangeset
for help on using the changeset viewer.