Changeset e2e3ad in git for kernel/gfan.h


Ignore:
Timestamp:
Nov 20, 2009, 6:01:20 PM (14 years ago)
Author:
Martin Monerjan
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
1d77dffe7911bafa212ddec6401c158b5357fe6c
Parents:
68b081826cda1d5edc4a5c9adb3f9ead2a95c338
Message:
bugfix in facet::getFacetNormal
gcone::rootRing removed
Introduced int gcone::pred to store predecessor
Cleanup



git-svn-id: file:///usr/local/Singular/svn/trunk@12309 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/gfan.h

    r68b081 re2e3ad  
    6868                ring flipRing;          //the ring on the other side of the facet
    6969                                       
    70                 /** The default constructor. Do I need a constructor of type facet(intvec)? */
     70                /** The default constructor. */
    7171                facet();
     72                /** Constructor for lower dimensional faces*/
    7273                facet(int const &n);
    73                 /** \brief The copy constructor
    74                  */
     74                /**  The copy constructor */
    7575                facet(const facet& f);
    7676               
     
    119119{
    120120        private:               
    121                 ring rootRing;          //good to know this -> generic walk
     121//              ring rootRing;          //good to know this -> generic walk
    122122                ideal inputIdeal;       //the original
    123123                ring baseRing;          //the basering of the cone                             
    124124                intvec *ivIntPt;        //an interior point of the cone
    125125                int UCN;                //unique number of the cone
     126                int pred;               //UCN of the cone this one is derived from
    126127                static int counter;
    127128               
     
    159160                intvec *getIntPoint();
    160161                void showIntPoint();
     162                void setNumFacets();
     163                int getNumFacets();
     164                int getUCN();
     165                int getPredUCN();               
    161166                void showFacets(short codim=1);
    162167                void showSLA(facet &f);
     
    164169                void invPrint(ideal const &I);
    165170                bool isMonomial(ideal const &I);
    166                 void setNumFacets();
    167                 int getNumFacets();
    168                 int getUCN();
     171                intvec *ivNeg(const intvec *iv);
     172                int dotProduct(intvec const &iva, intvec const &ivb);
     173                bool isParallel(intvec const &a, intvec const &b);
     174                bool areEqual(intvec const &a, intvec const &b);
     175                int intgcd(int a, int b);
     176                void writeConeToFile(gcone const &gc, bool usingIntPoints=FALSE);
     177                void readConeFromFile(int gcNum, gcone *gc);
     178                intvec f2M(gcone *gc, facet *f, int n=1);
     179               
     180                //The real stuff
    169181                void getConeNormals(ideal const &I, bool compIntPoint=FALSE);
    170182                void getCodim2Normals(gcone const &gc);
     
    173185//              poly restOfDiv(poly const &f, ideal const &I); removed with r12286
    174186                ideal ffG(ideal const &H, ideal const &G);
    175                 void getGB(ideal const &inputIdeal);
    176                 intvec *ivNeg(const intvec *iv);
    177                 int dotProduct(intvec const &iva, intvec const &ivb);
    178                 bool isParallel(intvec const &a, intvec const &b);
     187                void getGB(ideal const &inputIdeal);           
    179188                void interiorPoint(dd_MatrixPtr const &M, intvec &iv);
    180189                ring rCopyAndAddWeight(ring const &r, intvec const *ivw);
    181                 ring rCopyAndChangeWeight(ring const &r, intvec *ivw);
    182                 bool areEqual(intvec const &a, intvec const &b);
     190                ring rCopyAndChangeWeight(ring const &r, intvec *ivw);         
    183191//              void reverseSearch(gcone *gcAct); //NOTE both removed from r12286
    184192//              bool isSearchFacet(gcone &gcTmp, facet *testfacet);
     
    187195                void normalize();
    188196                facet * enqueueNewFacets(facet &f);
    189                 int intgcd(int a, int b);
    190                 dd_MatrixPtr facets2Matrix(gcone const &gc);
    191                 void writeConeToFile(gcone const &gc, bool usingIntPoints=FALSE);
    192                 void readConeFromFile(int gcNum, gcone *gc);
    193                
    194 //              static void gcone::idPrint(ideal &I);
    195                 intvec f2M(gcone *gc, facet *f, int n=1);
     197                dd_MatrixPtr facets2Matrix(gcone const &gc);           
     198//              static void gcone::idPrint(ideal &I);           
    196199                friend class facet;     
    197200};
Note: See TracChangeset for help on using the changeset viewer.