Changeset 1f637e in git for kernel/ideals.cc


Ignore:
Timestamp:
Jul 19, 2011, 5:11:57 PM (12 years ago)
Author:
Oleksandr Motsak <motsak@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'a800fe4b3e9d37a38c5a10cc0ae9dfa0c15a4ee6')
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/ideals.cc

    r6ed8c4 r1f637e  
    3232#include <polys/prCopy.h>
    3333#include <polys/nc/nc.h>
     34
    3435
    3536#include <kernel/ideals.h>
     
    149150    l = 1;
    150151    lex = pGetExp(p,l);
    151     while ((l < pVariables) && (lex == 0))
     152    while ((l < (currRing->N)) && (lex == 0))
    152153    {
    153154      l++;
     
    193194      pIter(qresult);
    194195    }
    195     for (j=pVariables-1; j>0; j--)
     196    for (j=(currRing->N)-1; j>0; j--)
    196197    {
    197198      lex = pGetExp(qp,j);
     
    16151616  {
    16161617    block0[1] = 1;
    1617     block1[1] = pVariables;
     1618    block1[1] = (currRing->N);
    16181619    if (origR->OrdSgn==1) ord[1] = ringorder_wp;
    16191620    else                  ord[1] = ringorder_ws;
    1620     wv[1]=(int*)omAlloc0(pVariables*sizeof(int));
    1621     double wNsqr = (double)2.0 / (double)pVariables;
     1621    wv[1]=(int*)omAlloc0((currRing->N)*sizeof(int));
     1622    double wNsqr = (double)2.0 / (double)(currRing->N);
    16221623    wFunctional = wFunctionalBuch;
    1623     int  *x= (int * )omAlloc(2 * (pVariables + 1) * sizeof(int));
     1624    int  *x= (int * )omAlloc(2 * ((currRing->N) + 1) * sizeof(int));
    16241625    int sl=IDELEMS(h1) - 1;
    16251626    wCall(h1->m, sl, x, wNsqr);
    1626     for (sl = pVariables; sl!=0; sl--)
    1627       wv[1][sl-1] = x[sl + pVariables + 1];
    1628     omFreeSize((ADDRESS)x, 2 * (pVariables + 1) * sizeof(int));
     1627    for (sl = (currRing->N); sl!=0; sl--)
     1628      wv[1][sl-1] = x[sl + (currRing->N) + 1];
     1629    omFreeSize((ADDRESS)x, 2 * ((currRing->N) + 1) * sizeof(int));
    16291630
    16301631    ord[2]=ringorder_C;
     
    17351736#endif
    17361737  // change into the new ring
    1737   //pChangeRing(pVariables,currRing->OrdSgn,ord,block0,block1,wv);
     1738  //pChangeRing((currRing->N),currRing->OrdSgn,ord,block0,block1,wv);
    17381739  rChangeCurrRing(tmpR);
    17391740
     
    17741775  for (k=0; k<=i; k++)
    17751776  {
    1776     l=pVariables;
     1777    l=(currRing->N);
    17771778    while ((l>0) && (p_GetExp( hh->m[k],l,tmpR)*pGetExp(delVar,l)==0)) l--;
    17781779    if (l==0)
     
    23742375  while ((j>0) && (kbase->m[j-1]==NULL)) j--;
    23752376  if (j==0) return -1;
    2376   int i=pVariables;
     2377  int i=(currRing->N);
    23772378  while (i>0)
    23782379  {
     
    24092410  poly coeff=pOne(), base=pOne();
    24102411
    2411   for (i=1;i<=pVariables;i++)
     2412  for (i=1;i<=(currRing->N);i++)
    24122413  {
    24132414    if (pGetExp(how,i)>0)
Note: See TracChangeset for help on using the changeset viewer.