Changeset 7d60f7 in git


Ignore:
Timestamp:
Oct 29, 2009, 4:54:04 PM (14 years ago)
Author:
Martin Monerjan
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', '00e2e9c41af3fde1273eb3633f4c0c7c3db2579d')
Children:
61197ff3d42399e95c952f06a3cd10fdd665dd82
Parents:
f5d2963eec6952b42517b3865c98f0a7ddedae43
Message:
kNF and timings


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

Legend:

Unmodified
Added
Removed
  • kernel/gfan.cc

    rf5d2963 r7d60f7  
    22Compute the Groebner fan of an ideal
    33$Author: monerjan $
    4 $Date: 2009-10-23 14:56:55 $
    5 $Header: /exports/cvsroot-2/cvsroot/kernel/gfan.cc,v 1.100 2009-10-23 14:56:55 monerjan Exp $
    6 $Id: gfan.cc,v 1.100 2009-10-23 14:56:55 monerjan Exp $
     4$Date: 2009-10-29 15:54:04 $
     5$Header: /exports/cvsroot-2/cvsroot/kernel/gfan.cc,v 1.101 2009-10-29 15:54:04 monerjan Exp $
     6$Id: gfan.cc,v 1.101 2009-10-29 15:54:04 monerjan Exp $
    77*/
    88
     
    2727#include <string>
    2828#include <sstream>
     29#include <time.h>
    2930//#include <gmpxx.h>
    3031
     
    10511052                        {
    10521053#ifdef gfan_DEBUG
    1053                                                 //cout << src_ExpV[kk] << "," << dst_ExpV[kk] << endl;
     1054                                                cout << src_ExpV[kk] << "," << dst_ExpV[kk] << endl;
    10541055#endif
    10551056                                if (src_ExpV[kk]!=dst_ExpV[kk])
     
    10631064                                markingsAreCorrect=TRUE; //everything is fine
    10641065#ifdef gfan_DEBUG
    1065 //                                              cout << "correct markings" << endl;
     1066                                                cout << "correct markings" << endl;
    10661067#endif
    10671068                        }//if (pHead(aktpoly)==pHead(H->m[jj])
     
    12751276        for (int ii=0;ii<size;ii++)
    12761277        {
    1277                 res->m[ii]=restOfDiv(H->m[ii],G);
    1278                                 //res->m[ii]=kNF(G, NULL,H->m[ii]);
     1278//              res->m[ii]=restOfDiv(H->m[ii],G);
     1279                res->m[ii]=kNF(G, NULL,H->m[ii],0,0);
    12791280                temp1=H->m[ii];
    12801281                temp2=res->m[ii];                               
     
    26582659ideal gfan(ideal inputIdeal, int h)
    26592660{
     2661        time_t tic,tac;
     2662        time(&tic);
     2663       
    26602664        int numvar = pVariables;
    26612665        gfanHeuristic = h;
     
    27522756        //res=gcAct->gcBasis;
    27532757        //res=gcRoot->gcBasis; 
     2758        time(&tac);
     2759        cout << "Time: " << difftime(tac,tic) << "sec" << endl;
    27542760        return res;
    27552761        //return GBlist;
Note: See TracChangeset for help on using the changeset viewer.