Changeset 1f637e in git for kernel/gr_kstd2.cc


Ignore:
Timestamp:
Jul 19, 2011, 5:11:57 PM (12 years ago)
Author:
Oleksandr Motsak <motsak@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'f875bbaccd0831e36aaed09ff6adeb3eb45aeb94')
Children:
1c4e9a5798bda4bc92d0013041b99005a50a7d7c
Parents:
6ed8c424bfe6fd9dc397bfdde3e8acf884469342
git-author:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2011-07-19 17:11:57+02:00
git-committer:
Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 12:52:40+01:00
Message:
FIX: replaced pVariables by currRing->N...
ADD: added 'void rChangeCurrRing(ring r);' to polys/polys.h
CHG: started changing gr_kstd2.cc and syz*.cc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/gr_kstd2.cc

    r6ed8c4 r1f637e  
    66*  ABSTRACT -  Kernel: noncomm. alg. of Buchberger
    77*/
    8 
    9 #include <kernel/mod2.h>
     8#define PLURAL_INTERNAL_DECLARATIONS
     9
     10#include "mod2.h"
    1011
    1112#ifdef HAVE_PLURAL
    1213
    13 #define PLURAL_INTERNAL_DECLARATIONS
    1414
    1515#include <omalloc/omalloc.h>
     16#include <misc/options.h>
     17#include <misc/intvec.h>
     18
     19#include <polys/weight.h>
    1620#include <polys/polys.h>
     21
     22#include <polys/nc/nc.h>
     23#include <polys/nc/sca.h>
     24
     25
     26#include <kernel/febase.h>
    1727#include <kernel/ideals.h>
    18 #include <kernel/febase.h>
    19 #include <misc/options.h>
    20 #include <kernel/kutil.h>
    2128#include <kernel/kstd1.h>
    2229#include <kernel/khstd.h>
    23 #include <kernel/kutil.h>
    2430//#include "spolys.h"
    2531//#include "cntrlc.h"
    26 #include <polys/weight.h>
    27 #include <misc/intvec.h>
    28 #include <polys/nc/nc.h>
    29 #include <polys/nc/sca.h>
    3032#include <kernel/ratgring.h>
     33
     34#include <kernel/kutil.h>
    3135
    3236#if 0
     
    10261030  //   else
    10271031    {
    1028       ecartWeights=(short *)omAlloc((pVariables+1)*sizeof(short));
     1032      ecartWeights=(short *)omAlloc(((currRing->N)+1)*sizeof(short));
    10291033      /*uses automatic computation of the ecartWeights to set them*/
    10301034      kEcartWeights(F->m,IDELEMS(F)-1,ecartWeights);
     
    10321036    pFDeg=totaldegreeWecart;
    10331037    pLDeg=maxdegreeWecart;
    1034     for(i=1; i<=pVariables; i++)
     1038    for(i=1; i<=(currRing->N); i++)
    10351039      Print(" %d",ecartWeights[i]);
    10361040    PrintLn();
     
    12831287    if (ecartWeights)
    12841288    {
    1285       omFreeSize((ADDRESS)ecartWeights,(pVariables+1)*sizeof(short));
     1289      omFreeSize((ADDRESS)ecartWeights,((currRing->N)+1)*sizeof(short));
    12861290      ecartWeights=NULL;
    12871291    }
Note: See TracChangeset for help on using the changeset viewer.