Changeset b3bb13 in git


Ignore:
Timestamp:
Mar 15, 2010, 12:51:39 PM (13 years ago)
Author:
Martin Monerjan
Branches:
(u'spielwiese', '0d6b7fcd9813a1ca1ed4220cfa2b104b97a0a003')
Children:
151609adec09397e40bc7601305d1dd6b3476999
Parents:
17f35f6769d568dadf1181f63670d7717e20726c
Message:
gcone::ivZeroVector
intgcd now static


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

Legend:

Unmodified
Added
Removed
  • kernel/gfan.cc

    r17f35f6 rb3bb13  
    15931593                        }
    15941594                }//For non-homog input ivIntPointOfFacet should already be >0 here
    1595                 if(!hasHomInput) {assert(iv64isStrictlyPositive(ivIntPointOfFacet));}
     1595//              if(!hasHomInput) {assert(iv64isStrictlyPositive(ivIntPointOfFacet));}
    15961596                //if we have no strictly pos ray but the input is homogeneous
    15971597                //then add a suitable multiple of (1,...,1)
     
    38453845/** \brief Compute the gcd of two ints
    38463846 */
    3847 inline int gcone::intgcd(const int &a, const int &b)
     3847static int intgcd(const int &a, const int &b)
    38483848{
    38493849        int r, p=a, q=b;
     
    43864386int gcone::numVars;
    43874387bool gcone::hasHomInput=FALSE;
     4388intvec *gcone::ivZeroVector;
    43884389// ideal gfan(ideal inputIdeal, int h)
    43894390lists gfan(ideal inputIdeal, int h)
     
    44254426                                gcone::hilbertFunction=hHstdSeries(inputIdeal,NULL,NULL,NULL,currRing);
    44264427                        }
     4428                        else
     4429                        {
     4430                                gcone::ivZeroVector = new intvec(pVariables);
     4431                                for(int ii=0;ii<pVariables;ii++)
     4432                                        (*gcone::ivZeroVector)[ii]=0;
     4433                        }
    44274434        #ifndef NDEBUG
    44284435        //              cout << "GB of input ideal is:" << endl;
     
    44364443//                              gcAct->getConeNormals(gcAct->gcBasis);
    44374444//                              lResList=lprepareResult(gcAct,1);
    4438                                 dd_free_global_constants;
     4445                                dd_free_global_constants();
    44394446                                //This is filthy
    44404447                                return lResList;
  • kernel/gfan.h

    r17f35f6 rb3bb13  
    7777                unsigned numRays;       //Number of spanning rays of the facet
    7878                ring flipRing;          //the ring on the other side of the facet
     79                intvec **fRays;
    7980                                       
    8081                /** The default constructor. */
     
    177178                /** The hilbert function - for the homogeneous case*/
    178179                static intvec *hilbertFunction;
     180                /** The zero vector. Needed in case of fNormal mismatch*/
     181                static intvec *ivZeroVector;
    179182               
    180183                /** # of facets of the cone
     
    226229                inline bool areEqual( facet *f,  facet *g);
    227230                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);
    229232                inline void writeConeToFile(const gcone &gc, bool usingIntPoints=FALSE);
    230233                inline void readConeFromFile(int gcNum, gcone *gc);
     
    263266};
    264267lists lprepareResult(gcone *gc, const int n);
     268static int intgcd(const int &a, const int &b);
    265269// bool iv64isStrictlyPositive(intvec *);
    266270#endif
Note: See TracChangeset for help on using the changeset viewer.