Changeset 1f637e in git for kernel/ideals.cc
- Timestamp:
- Jul 19, 2011, 5:11:57 PM (12 years ago)
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/ideals.cc
r6ed8c4 r1f637e 32 32 #include <polys/prCopy.h> 33 33 #include <polys/nc/nc.h> 34 34 35 35 36 #include <kernel/ideals.h> … … 149 150 l = 1; 150 151 lex = pGetExp(p,l); 151 while ((l < pVariables) && (lex == 0))152 while ((l < (currRing->N)) && (lex == 0)) 152 153 { 153 154 l++; … … 193 194 pIter(qresult); 194 195 } 195 for (j= pVariables-1; j>0; j--)196 for (j=(currRing->N)-1; j>0; j--) 196 197 { 197 198 lex = pGetExp(qp,j); … … 1615 1616 { 1616 1617 block0[1] = 1; 1617 block1[1] = pVariables;1618 block1[1] = (currRing->N); 1618 1619 if (origR->OrdSgn==1) ord[1] = ringorder_wp; 1619 1620 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); 1622 1623 wFunctional = wFunctionalBuch; 1623 int *x= (int * )omAlloc(2 * ( pVariables+ 1) * sizeof(int));1624 int *x= (int * )omAlloc(2 * ((currRing->N) + 1) * sizeof(int)); 1624 1625 int sl=IDELEMS(h1) - 1; 1625 1626 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)); 1629 1630 1630 1631 ord[2]=ringorder_C; … … 1735 1736 #endif 1736 1737 // change into the new ring 1737 //pChangeRing( pVariables,currRing->OrdSgn,ord,block0,block1,wv);1738 //pChangeRing((currRing->N),currRing->OrdSgn,ord,block0,block1,wv); 1738 1739 rChangeCurrRing(tmpR); 1739 1740 … … 1774 1775 for (k=0; k<=i; k++) 1775 1776 { 1776 l= pVariables;1777 l=(currRing->N); 1777 1778 while ((l>0) && (p_GetExp( hh->m[k],l,tmpR)*pGetExp(delVar,l)==0)) l--; 1778 1779 if (l==0) … … 2374 2375 while ((j>0) && (kbase->m[j-1]==NULL)) j--; 2375 2376 if (j==0) return -1; 2376 int i= pVariables;2377 int i=(currRing->N); 2377 2378 while (i>0) 2378 2379 { … … 2409 2410 poly coeff=pOne(), base=pOne(); 2410 2411 2411 for (i=1;i<= pVariables;i++)2412 for (i=1;i<=(currRing->N);i++) 2412 2413 { 2413 2414 if (pGetExp(how,i)>0)
Note: See TracChangeset
for help on using the changeset viewer.