Changeset ce41a2e in git


Ignore:
Timestamp:
Mar 16, 2010, 8:34:46 AM (13 years ago)
Author:
Martin Monerjan
Branches:
(u'spielwiese', '0d6b7fcd9813a1ca1ed4220cfa2b104b97a0a003')
Children:
706b890c390993bb14ed93acf3c4b09775b93361
Parents:
ec6c521f728502456c5e851b7943d2d5202de7c2
Message:
facet::isIncoming no longer exists
some methods are const now
cleanup in readConeFromFile


git-svn-id: file:///usr/local/Singular/svn/trunk@12647 2c84dea3-7e68-4137-9b89-c4e89433aadc
Location:
kernel
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • kernel/gfan.cc

    rec6c52 rce41a2e  
    111111        this->numRays=0;
    112112        this->flipGB=NULL;
    113         this->isIncoming=FALSE;
    114113        this->next=NULL;
    115114        this->prev=NULL;               
     
    135134        this->numRays=0;
    136135        this->flipGB=NULL;
    137         this->isIncoming=FALSE;
    138136        this->next=NULL;
    139137        this->prev=NULL;
     
    255253}
    256254               
    257 inline const intvec *facet::getRef2FacetNormal()
     255inline const intvec *facet::getRef2FacetNormal() const
    258256{
    259257        return(this->fNormal);
     
    416414* delete(iv);
    417415*/
    418 inline intvec *facet::getFacetNormal()
     416inline intvec *facet::getFacetNormal() const
    419417{                               
    420418        return ivCopy(this->fNormal);
     
    423421
    424422/** Method to print the facet normal*/
    425 inline void facet::printNormal()
     423inline void facet::printNormal() const
    426424{
    427425        fNormal->show();
     
    40274025                        }
    40284026                        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 //                      }
    40424027                       
    40434028                        ring newRing;
    40444029                        if(currRing->order[0]!=ringorder_a)
    40454030                        {
    4046 //                              if(iv2!=NULL)
    4047 //                                      newRing=rCopyAndAddWeight2(currRing,iv,iv2);
    4048 //                              else
    40494031                                        newRing=rCopyAndAddWeight(currRing,iv);
    40504032                        }
    40514033                        else
    40524034                        {       
    4053 //                              if(iv2==NULL)
    4054 //                              {
    40554035                                        newRing=rCopy0(currRing);
    40564036                                        int length=this->numVars;
     
    40634043                                        newRing->wvhdl[0]=(int*)A;
    40644044                                        newRing->block1[0]=length;
    4065 //                              }
    4066 //                              else
    4067 //                              {
    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 //                              }
    40844045                        }
    40854046                        delete iv;
    4086 //                      delete iv2;
    40874047                        rComplete(newRing);
    40884048                        gc->baseRing=rCopy(newRing);
  • kernel/gfan.h

    rec6c52 rce41a2e  
    2222#endif
    2323extern 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
    3525lists gfan(ideal inputIdeal, int heuristic);
    36 //int dotProduct(intvec a, intvec b);
    37 //bool isParallel(intvec a, intvec b);
    3826
    3927class facet
     
    7058                 */     
    7159                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
    7361                facet *next;            //Pointer to next facet
    7462                facet *prev;            //Pointer to predecessor. Needed for the SearchList in noRevS
     
    9381//              inline bool operator==(const facet *f,const facet *g);                 
    9482                /** \brief Comparison of facets*/
    95                 inline bool areEqual(facet *f, facet *g);
     83//              inline bool areEqual(facet *f, facet *g);//Now static
    9684                /** Stores the facet normal \param intvec*/
    9785                inline void setFacetNormal(intvec *iv);
    9886                /** Returns the facet normal */
    99                 inline intvec *getFacetNormal();
     87                inline intvec *getFacetNormal() const;
    10088                /** Return a reference to the facet normal*/
    101                 inline const intvec *getRef2FacetNormal();
     89                inline const intvec *getRef2FacetNormal() const;
    10290                /** Method to print the facet normal*/
    103                 inline void printNormal();
     91                inline void printNormal() const;
    10492                /** Store the flipped GB*/
    10593                inline void setFlipGB(ideal I);
     
    136124{
    137125        private:               
    138                 //ring rootRing;                //good to know this -> generic walk
    139126                ideal inputIdeal;       //the original
    140127                ring baseRing;          //the basering of the cone                             
     
    272259static bool isMonomial(const ideal &I);
    273260static bool ivAreEqual(const intvec &a, const intvec &b);
    274 static bool areEqual2(facet* f, facet *g);
    275 static bool areEqual( facet *f,  facet *g);
     261static bool areEqual2(facet *f, facet *g);
     262static bool areEqual( facet *f, facet *g);
    276263// bool iv64isStrictlyPositive(intvec *);
    277264#endif
Note: See TracChangeset for help on using the changeset viewer.