Changeset 4e4d75 in git


Ignore:
Timestamp:
Sep 23, 2009, 11:36:06 AM (15 years ago)
Author:
Martin Monerjan
Branches:
(u'spielwiese', '4a9821a93ffdc22a6696668bd4f6b8c9de3e6c5f')
Children:
493699ee1754bff0d1b7c8f580f0b29c26002e60
Parents:
eef038e6accb48f70ad0393631112bdaafb509f5
Message:
Computation of strictly positive interior points


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

Legend:

Unmodified
Added
Removed
  • kernel/gfan.cc

    reef038 r4e4d75  
    22Compute the Groebner fan of an ideal
    33$Author: monerjan $
    4 $Date: 2009-09-22 09:40:10 $
    5 $Header: /exports/cvsroot-2/cvsroot/kernel/gfan.cc,v 1.86 2009-09-22 09:40:10 monerjan Exp $
    6 $Id: gfan.cc,v 1.86 2009-09-22 09:40:10 monerjan Exp $
     4$Date: 2009-09-23 09:36:06 $
     5$Header: /exports/cvsroot-2/cvsroot/kernel/gfan.cc,v 1.87 2009-09-23 09:36:06 monerjan Exp $
     6$Id: gfan.cc,v 1.87 2009-09-23 09:36:06 monerjan Exp $
    77*/
    88
     
    800800                        {
    801801                                intvec *iv = new intvec(this->numVars);
     802                                dd_MatrixPtr posRestr=dd_CreateMatrix(this->numVars,this->numVars+1);
     803                                int jj=1;
     804                                for (int ii=0;ii<=this->numVars;ii++)
     805                                {
     806                                        dd_set_si(posRestr->matrix[ii][jj],1);
     807                                        jj++;                                                   
     808                                }
     809                                dd_MatrixAppendTo(&ddineq,posRestr);
    802810                                interiorPoint(ddineq, *iv);     //NOTE ddineq contains non-flippable facets
    803811                                this->setIntPoint(iv);  //stores the interior point in gcone::ivIntPt
     
    10841092                        construction of the differences
    10851093                        */
    1086                         intPointMatrix = dd_CreateMatrix(iPMatrixRows+3,this->numVars+1); //iPMatrixRows+10;
     1094                        intPointMatrix = dd_CreateMatrix(iPMatrixRows+10,this->numVars+1); //iPMatrixRows+10;
    10871095                        intPointMatrix->numbtype=dd_Integer;    //NOTE: DO NOT REMOVE OR CHANGE TO dd_Rational
    10881096                       
     
    11681176                                dd_set_si(intPointMatrix->matrix[aktrow][jj],1);
    11691177                        }
     1178                        //Let's make sure we compute interior points from the positive orthant
     1179                        dd_MatrixPtr posRestr=dd_CreateMatrix(this->numVars,this->numVars+1);
     1180                        int jj=1;
     1181                        for (int ii=0;ii<this->numVars;ii++)
     1182                        {
     1183                                dd_set_si(posRestr->matrix[ii][jj],1);
     1184                                jj++;                                                   
     1185                        }
     1186                        dd_MatrixAppendTo(&intPointMatrix,posRestr);
    11701187#ifdef gfan_DEBUG
    11711188//                      dd_WriteMatrix(stdout,intPointMatrix);
Note: See TracChangeset for help on using the changeset viewer.