Changeset b3bb13 in git
- Timestamp:
- Mar 15, 2010, 12:51:39 PM (13 years ago)
- Branches:
- (u'spielwiese', '0d6b7fcd9813a1ca1ed4220cfa2b104b97a0a003')
- Children:
- 151609adec09397e40bc7601305d1dd6b3476999
- Parents:
- 17f35f6769d568dadf1181f63670d7717e20726c
- Location:
- kernel
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/gfan.cc
r17f35f6 rb3bb13 1593 1593 } 1594 1594 }//For non-homog input ivIntPointOfFacet should already be >0 here 1595 if(!hasHomInput) {assert(iv64isStrictlyPositive(ivIntPointOfFacet));}1595 // if(!hasHomInput) {assert(iv64isStrictlyPositive(ivIntPointOfFacet));} 1596 1596 //if we have no strictly pos ray but the input is homogeneous 1597 1597 //then add a suitable multiple of (1,...,1) … … 3845 3845 /** \brief Compute the gcd of two ints 3846 3846 */ 3847 inline int gcone::intgcd(const int &a, const int &b)3847 static int intgcd(const int &a, const int &b) 3848 3848 { 3849 3849 int r, p=a, q=b; … … 4386 4386 int gcone::numVars; 4387 4387 bool gcone::hasHomInput=FALSE; 4388 intvec *gcone::ivZeroVector; 4388 4389 // ideal gfan(ideal inputIdeal, int h) 4389 4390 lists gfan(ideal inputIdeal, int h) … … 4425 4426 gcone::hilbertFunction=hHstdSeries(inputIdeal,NULL,NULL,NULL,currRing); 4426 4427 } 4428 else 4429 { 4430 gcone::ivZeroVector = new intvec(pVariables); 4431 for(int ii=0;ii<pVariables;ii++) 4432 (*gcone::ivZeroVector)[ii]=0; 4433 } 4427 4434 #ifndef NDEBUG 4428 4435 // cout << "GB of input ideal is:" << endl; … … 4436 4443 // gcAct->getConeNormals(gcAct->gcBasis); 4437 4444 // lResList=lprepareResult(gcAct,1); 4438 dd_free_global_constants ;4445 dd_free_global_constants(); 4439 4446 //This is filthy 4440 4447 return lResList; -
kernel/gfan.h
r17f35f6 rb3bb13 77 77 unsigned numRays; //Number of spanning rays of the facet 78 78 ring flipRing; //the ring on the other side of the facet 79 intvec **fRays; 79 80 80 81 /** The default constructor. */ … … 177 178 /** The hilbert function - for the homogeneous case*/ 178 179 static intvec *hilbertFunction; 180 /** The zero vector. Needed in case of fNormal mismatch*/ 181 static intvec *ivZeroVector; 179 182 180 183 /** # of facets of the cone … … 226 229 inline bool areEqual( facet *f, facet *g); 227 230 inline bool areEqual2(facet* f, facet *g); 228 inline int intgcd(const int &a, const int &b);231 // inline int intgcd(const int &a, const int &b); 229 232 inline void writeConeToFile(const gcone &gc, bool usingIntPoints=FALSE); 230 233 inline void readConeFromFile(int gcNum, gcone *gc); … … 263 266 }; 264 267 lists lprepareResult(gcone *gc, const int n); 268 static int intgcd(const int &a, const int &b); 265 269 // bool iv64isStrictlyPositive(intvec *); 266 270 #endif
Note: See TracChangeset
for help on using the changeset viewer.