Changeset 53e33d9 in git


Ignore:
Timestamp:
Mar 27, 2009, 1:21:27 PM (14 years ago)
Author:
Martin Monerjan
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'a800fe4b3e9d37a38c5a10cc0ae9dfa0c15a4ee6')
Children:
e908810c8dd426652b64941fd24e8b2008c9393d
Parents:
a9431ce0768900f372ea152334160e89ebab527c
Message:
*** empty log message ***


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

Legend:

Unmodified
Added
Removed
  • kernel/gfan.cc

    ra9431c r53e33d9  
    22Compute the Groebner fan of an ideal
    33$Author: monerjan $
    4 $Date: 2009-03-26 10:30:21 $
    5 $Header: /exports/cvsroot-2/cvsroot/kernel/gfan.cc,v 1.22 2009-03-26 10:30:21 monerjan Exp $
    6 $Id: gfan.cc,v 1.22 2009-03-26 10:30:21 monerjan Exp $
     4$Date: 2009-03-27 12:21:27 $
     5$Header: /exports/cvsroot-2/cvsroot/kernel/gfan.cc,v 1.23 2009-03-27 12:21:27 monerjan Exp $
     6$Id: gfan.cc,v 1.23 2009-03-27 12:21:27 monerjan Exp $
    77*/
    88
     
    4444/**
    4545*\brief Class facet
    46 *       Implements the facet structure
     46*       Implements the facet structure as a linked list
    4747*
    4848*/
     
    9494
    9595        public:
     96                /** Default constructor. */
    9697                gcone()
    9798                {
     
    101102                gcone(int);             //constructor with dimension
    102103                ~gcone();               //destructor
     104                /** Pointer to the first facet */
    103105                facet *facetPtr;        //Will hold the adress of the first facet
    104106                poly gcMarkedTerm;      //marked terms of the cone's Groebner basis
    105107                ideal gcBasis;          //GB of the cone
    106108                gcone *next;            //Pointer to *previous* cone in search tree
    107        
     109                void getConeNormals();  //Compute
    108110                void flip();            //Compute "the other side"
    109111                void remRedFacets();    //Remove redundant facets of the cone NOT NEEDED since this is already done by cddlib while compunting the normals
     
    322324        #endif
    323325        ring rootRing;  // The ring associated to the target ordering
    324         rRingOrder_t t=ringorder_dp;
     326        rRingOrder_t t;
    325327       
    326328        ideal res;
     
    330332       
    331333        rootRing=rCopy0(currRing);
    332         rootRing=rInit(0,numvar,t);
     334        rootRing->order[0]=ringorder_dp;
     335        //t=rootRing->order[0];
     336        rootRing=rInit(0,2,rootRing->order);
     337        rootRing=rDefault(currRing->ch,numvar,currRing->names);
    333338        rComplete(rootRing);
    334339        rChangeCurrRing(rootRing);
    335340        cout << "The current ring is " << endl;
    336341        rWrite(rootRing);
    337        
     342               
    338343        gcone *gcRoot = new gcone();    //Instantiate the sink
    339344        gcone *gcAct;
Note: See TracChangeset for help on using the changeset viewer.