Changeset 85583b in git for kernel/gfan.h
- Timestamp:
- Feb 16, 2010, 5:05:03 PM (14 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- 5e4025d037557e1b2babb26b815b37481f5fb5f4
- Parents:
- 31c447291e9eccdbde66296a43b320588c671e83
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/gfan.h
r31c447 r85583b 13 13 14 14 #include "intvec.h" 15 #include "int 64vec.h"15 #include "intvec.h" 16 16 17 17 #define p800 … … 35 35 lists gfan(ideal inputIdeal, int heuristic); 36 36 37 //int dotProduct(int 64vec a, int64vec b);38 //bool isParallel(int 64vec a, int64vec b);37 //int dotProduct(intvec a, intvec b); 38 //bool isParallel(intvec a, intvec b); 39 39 40 40 class facet … … 42 42 private: 43 43 /** \brief Inner normal of the facet, describing it uniquely up to isomorphism */ 44 int 64vec *fNormal;44 intvec *fNormal; 45 45 46 46 /** \brief An interior point of the facet*/ 47 int 64vec *interiorPoint;47 intvec *interiorPoint; 48 48 49 49 /** \brief Universal Cone Number … … 90 90 /** \brief Comparison of facets*/ 91 91 inline bool areEqual(facet *f, facet *g); 92 /** Stores the facet normal \param int 64vec*/93 inline void setFacetNormal(int 64vec *iv);92 /** Stores the facet normal \param intvec*/ 93 inline void setFacetNormal(intvec *iv); 94 94 /** Hopefully returns the facet normal */ 95 inline int64vec *getFacetNormal(); 95 inline intvec *getFacetNormal(); 96 /** Return a reference to the facet normal*/ 97 inline intvec *getRef2FacetNormal(); 96 98 /** Method to print the facet normal*/ 97 99 inline void printNormal(); … … 109 111 inline int getUCN(); 110 112 /** Store an interior point of the facet */ 111 inline void setInteriorPoint(int 64vec *iv);112 inline int 64vec *getInteriorPoint();113 inline void setInteriorPoint(intvec *iv); 114 inline intvec *getInteriorPoint(); 113 115 /** \brief Debugging function 114 116 * prints the facet normal an all (codim-2)-facets that belong to it … … 131 133 ideal inputIdeal; //the original 132 134 ring baseRing; //the basering of the cone 133 int 64vec *ivIntPt; //an interior point of the cone135 intvec *ivIntPt; //an interior point of the cone 134 136 int UCN; //unique number of the cone 135 137 int pred; //UCN of the cone this one is derived from … … 144 146 static float t_getExtremalRays; 145 147 static float time_flip; 148 static float t_areEqual; 146 149 static float t_ffG; 147 150 static float t_markings; … … 189 192 inline int getCounter(); 190 193 inline ring getBaseRing(); 191 inline void setIntPoint(int 64vec *iv);192 inline int 64vec *getIntPoint();194 inline void setIntPoint(intvec *iv); 195 inline intvec *getIntPoint(); 193 196 inline void showIntPoint(); 194 197 inline void setNumFacets(); … … 201 204 inline void invPrint(const ideal &I); 202 205 inline bool isMonomial(const ideal &I); 203 inline int 64vec *ivNeg(int64vec *iv);204 inline int dotProduct(int 64vec &iva, int64vec &ivb);205 inline bool isParallel(int 64vec &a, int64vec &b);206 inline bool areEqual(int 64vec &a, int64vec &b);207 inline bool areEqual( facet *f,facet *g);206 inline intvec *ivNeg(intvec *iv); 207 inline int dotProduct(intvec &iva, intvec &ivb); 208 inline bool isParallel(intvec &a, intvec &b); 209 inline bool areEqual(intvec &a, intvec &b); 210 inline bool areEqual( facet *f, facet *g); 208 211 inline int intgcd(int a, int b); 209 212 inline void writeConeToFile(const gcone &gc, bool usingIntPoints=FALSE); … … 216 219 inline void getExtremalRays(const gcone &gc); 217 220 inline void flip(ideal gb, facet *f); 218 inline void computeInv(ideal &gb, ideal &inv, int 64vec &f);221 inline void computeInv(ideal &gb, ideal &inv, intvec &f); 219 222 // poly restOfDiv(poly const &f, ideal const &I); removed with r12286 220 223 inline ideal ffG(const ideal &H, const ideal &G); 221 224 inline void getGB(ideal const &inputIdeal); 222 inline void interiorPoint( dd_MatrixPtr &M, int 64vec &iv);223 // inline void interiorPoint2(const dd_MatrixPtr &M, int 64vec &iv);//removed Feb 8th, 2010225 inline void interiorPoint( dd_MatrixPtr &M, intvec &iv); 226 // inline void interiorPoint2(const dd_MatrixPtr &M, intvec &iv);//removed Feb 8th, 2010 224 227 inline void preprocessInequalities(dd_MatrixPtr &M); 225 ring rCopyAndAddWeight(const ring &r, int 64vec *ivw);226 ring rCopyAndChangeWeight(const ring &r, int 64vec *ivw);228 ring rCopyAndAddWeight(const ring &r, intvec *ivw); 229 ring rCopyAndChangeWeight(const ring &r, intvec *ivw); 227 230 // void reverseSearch(gcone *gcAct); //NOTE both removed from r12286 228 231 // bool isSearchFacet(gcone &gcTmp, facet *testfacet); 229 232 void noRevS(gcone &gcRoot, bool usingIntPoint=FALSE); 230 inline void makeInt(const dd_MatrixPtr &M, const int line, int 64vec &n);233 inline void makeInt(const dd_MatrixPtr &M, const int line, intvec &n); 231 234 inline void normalize(); 232 235 facet * enqueueNewFacets(facet *f); … … 234 237 dd_MatrixPtr facets2Matrix(const gcone &gc); 235 238 /** Compute the lineality space Ax=0 and return it as dd_MatrixPtr dd_LinealitySpace*/ 236 inline dd_MatrixPtr computeLinealitySpace(); 239 inline dd_MatrixPtr computeLinealitySpace(); 240 inline bool iv64isStrictlyPositive(intvec *); 237 241 // static void gcone::idPrint(ideal &I); 238 242 friend class facet; 239 243 }; 240 244 lists lprepareResult(gcone *gc, int n); 241 #endif 242 #endif 245 // bool iv64isStrictlyPositive(intvec *); 246 #endif 247 #endif
Note: See TracChangeset
for help on using the changeset viewer.