Changeset 6e51338 in git for kernel/gfan.cc


Ignore:
Timestamp:
Jul 4, 2009, 10:55:44 AM (14 years ago)
Author:
Martin Monerjan
Branches:
(u'spielwiese', '8e0ad00ce244dfd0756200662572aef8402f13d5')
Children:
9d46957d23b09bf46fb5ef240e8c05a7432fe1e1
Parents:
52696b20f5e20bdcd5f1882fed6a5d8305356070
Message:
Keep matrix of facet normals in each gcone in order to have the right codim2facets


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

Legend:

Unmodified
Added
Removed
  • kernel/gfan.cc

    r52696b r6e51338  
    22Compute the Groebner fan of an ideal
    33$Author: monerjan $
    4 $Date: 2009-07-03 14:39:49 $
    5 $Header: /exports/cvsroot-2/cvsroot/kernel/gfan.cc,v 1.71 2009-07-03 14:39:49 monerjan Exp $
    6 $Id: gfan.cc,v 1.71 2009-07-03 14:39:49 monerjan Exp $
     4$Date: 2009-07-04 08:55:44 $
     5$Header: /exports/cvsroot-2/cvsroot/kernel/gfan.cc,v 1.72 2009-07-04 08:55:44 monerjan Exp $
     6$Id: gfan.cc,v 1.72 2009-07-04 08:55:44 monerjan Exp $
    77*/
    88
     
    318318                */
    319319                int numFacets;          //#of facets of the cone
     320               
     321                /**
     322                * At least as a workaround we store the irredundant facets of a matrix here.
     323                * Otherwise, since we throw away non-flippable facets, facets2Matrix will not
     324                * yield all the necessary information
     325                */
     326                dd_MatrixPtr ddFacets;  //Matrix to store irredundant facets of the cone
    320327               
    321328                /** Contains the Groebner basis of the cone. Is set by gcone::getGB(ideal I)*/
     
    613620                        ddrows = ddineq->rowsize;       //Size of the matrix with redundancies removed
    614621                        ddcols = ddineq->colsize;
     622                       
     623                        //ddCreateMatrix(ddrows,ddcols+1);
     624                        ddFacets = dd_CopyMatrix(ddineq);
    615625#ifdef gfan_DEBUG
    616626//                      cout << "Having removed redundancies, the normals now read:" << endl;
     
    741751                        dd_rowindex newpos;             
    742752
    743                         ddineq = facets2Matrix(gc);     //get a matrix representation of the cone
     753                        //ddineq = facets2Matrix(gc);   //get a matrix representation of the cone
     754                        ddineq = dd_CopyMatrix(gc.ddFacets);
    744755                               
    745756                        /*Now set appropriate linearity*/
     
    19541965                                                                       
    19551966                                                                }
    1956                                                                 sl2Act = sl2Act->next;
     1967                                                                else
     1968                                                                {
     1969                                                                        sl2Act = sl2Act->next;
     1970                                                                        codim2Act = codim2Act->next;
     1971                                                                }
    19571972                                                        }
    19581973                                                        if(doNotAdd==FALSE)
    19591974                                                                break;
    1960                                                         codim2Act = codim2Act->next;                                                   
     1975                                                        //codim2Act = codim2Act->next;                                                 
    19611976                                                }
    19621977                                                if(doNotAdd==TRUE)
Note: See TracChangeset for help on using the changeset viewer.