Changeset 741464 in git
- Timestamp:
- Jan 30, 2015, 10:55:49 AM (9 years ago)
- Branches:
- (u'spielwiese', '8e0ad00ce244dfd0756200662572aef8402f13d5')
- Children:
- c9fcd5e3b1b695444030076b43c81e910fb047db
- Parents:
- b5396f0e7a5f63b75bd8c6911edfd4d7e1b61840
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/iparith.cc
rb5396f0 r741464 1761 1761 if (s+p_MinComp(M->m[i],currRing)<=0) 1762 1762 { id_Delete(&M,currRing);return TRUE;} 1763 p_Shift(&(M->m[i]),s,currRing); 1764 } 1765 M->rank += s; 1763 } 1764 id_Shift(M,s,currRing); 1766 1765 res->data=M; 1767 1766 return FALSE; -
kernel/GBEngine/syz.cc
rb5396f0 r741464 604 604 if (! idIs0(res[i])) 605 605 { 606 for (j=0; j<IDELEMS(res[i]); j++) 607 { 608 p_Shift(&res[i]->m[j], -rGetMaxSyzComp(i, currRing),currRing); 609 } 606 id_Shift(res[i],-rGetMaxSyzComp(i, currRing),currRing); 610 607 } 611 608 } -
kernel/GBEngine/syz0.cc
rb5396f0 r741464 668 668 for(k=0;k<IDELEMS(result);k++) pDelete(&((*Shdl)[k])); 669 669 670 670 kBucketDestroy(&(sy0buck)); 671 671 return result; 672 672 } … … 841 841 } 842 842 843 static void idShift(ideal arg,int index)844 {845 int i,j=rGetMaxSyzComp(index, currRing);846 for (i=0;i<IDELEMS(arg);i++)847 {848 if (arg->m[i]!=NULL)849 p_Shift(&arg->m[i],-j,currRing);850 }851 }852 853 843 #if 0 /*debug only */ 854 844 static void syPrintResolution(resolvente res,int start,int length) … … 918 908 if (syRing != origR) 919 909 { 920 910 rChangeCurrRing(syRing); 921 911 for (i=0; i<IDELEMS(res[1]); i++) 922 912 { … … 931 921 if (syRing != origR) 932 922 { 933 923 rChangeCurrRing(syRing); 934 924 for (i=0; i<IDELEMS(res[0]); i++) 935 925 { … … 954 944 while ((syzIndex < *length) && (!idIs0(res[syzIndex]))) 955 945 { 956 id Shift(res[syzIndex],syzIndex);946 id_Shift(res[syzIndex],-rGetMaxSyzComp(syzIndex, currRing),currRing); 957 947 syzIndex++; 958 948 } -
kernel/GBEngine/syz3.cc
rb5396f0 r741464 1788 1788 if (rk_arg==0) 1789 1789 { 1790 for (j=0;j<IDELEMS(temp);j++) 1791 { 1792 if (temp->m[j]!=NULL) 1793 p_Shift(&temp->m[j],1,currRing); 1794 } 1790 id_Shift(temp,1,currRing); 1795 1791 } 1796 1792 idSkipZeroes(temp); … … 2003 1999 PrintS("Da ist was faul!!!\n"); 2004 2000 Print("Aber: Regularitaet %d, Grad %ld\n", 2005 2001 syzstr->regularity,p_FDeg(totake[index]->m[i],currRing)); 2006 2002 } 2007 2003 } -
kernel/ideals.cc
rb5396f0 r741464 476 476 if (k == 0) 477 477 { 478 for (j=0; j<=i; j++) p_Shift(&(h2->m[j]),1,currRing);478 id_Shift(h2,1,currRing); 479 479 k = 1; 480 480 } … … 575 575 { 576 576 ideal result=idFreeModule(idElemens_h1/*IDELEMS(h1)*/); 577 int curr_syz_limit=rGetCurrSyzLimit(currRing);578 if (curr_syz_limit>0)579 for (ii=0;ii<idElemens_h1/*IDELEMS(h1)*/;ii++)580 {581 if (h1->m[ii]!=NULL)582 p_Shift(&h1->m[ii],curr_syz_limit,currRing);583 }584 577 return result; 585 578 } … … 772 765 { 773 766 *syz=idFreeModule(IDELEMS(h1)); 774 int curr_syz_limit=rGetCurrSyzLimit(currRing);775 if (curr_syz_limit>0)776 for (int ii=0;ii<IDELEMS(h1);ii++)777 {778 if (h1->m[ii]!=NULL)779 p_Shift(&h1->m[ii],curr_syz_limit,currRing);780 }781 767 } 782 768 return idInit(1,h1->rank); … … 1017 1003 if (lsmod==0) 1018 1004 { 1019 for (j=IDELEMS(s_temp);j>0;j--) 1020 { 1021 if (s_temp->m[j-1]!=NULL) 1022 p_Shift(&(s_temp->m[j-1]),1,currRing); 1023 } 1005 id_Shift(s_temp,1,currRing); 1024 1006 } 1025 1007 if (unit!=NULL) … … 1269 1251 { 1270 1252 p = p_Copy_noCheck(h4->m[i-1], currRing); p_Shift(&p,1,currRing); 1271 1253 // pTest(p); 1272 1254 h4->m[i] = p; 1273 1255 } -
libpolys/polys/simpleideals.cc
rb5396f0 r741464 90 90 if (p!=NULL) 91 91 if (p_LmIsConstantComp(p, r) == TRUE) 92 92 return k; 93 93 } 94 94 … … 1734 1734 return result; 1735 1735 } 1736 1737 void id_Shift(ideal M, int s, const ring r) 1738 { 1739 for(int i=IDELEMS(M)-1; i>=0;i--) 1740 { 1741 p_Shift(&(M->m[i]),s,r); 1742 } 1743 M->rank += s; 1744 } -
libpolys/polys/simpleideals.h
rb5396f0 r741464 152 152 153 153 ideal id_ChineseRemainder(ideal *xx, number *q, int rl, const ring r); 154 155 void id_Shift(ideal M, int s, const ring r); 154 156 #endif
Note: See TracChangeset
for help on using the changeset viewer.