Changeset 49a766 in git
- Timestamp:
- Nov 11, 2010, 3:43:50 PM (13 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', '0604212ebb110535022efecad887940825b97c3f')
- Children:
- b004b6273a2ce481feb153c91f19444312e14289
- Parents:
- 77f2794c9fc905c0441cd1ad06cb1cd965926cf1
- Location:
- kernel
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/syz.cc
r77f279 r49a766 26 26 27 27 #include <kernel/sca.h> 28 29 void syDeleteRes(resolvente * res,int length)30 {31 for (int i=0;i<length;i++)32 {33 if (!idIs0((*res)[i]))34 idDelete(&((*res)[i]));35 }36 omFreeSize((ADDRESS)res,length*sizeof(ideal));37 *res = NULL;38 }39 28 40 29 static intvec * syPrepareModComp(ideal arg,intvec ** w) … … 1185 1174 return result; 1186 1175 } 1187 1188 /*21189 * is looking for the minimal minimized module of a resolvente1190 * i.e. returns 0 if res comes from a mres-command and 1 in the1191 * case of res-commands1192 */1193 int syIsMinimizedFrom(resolvente res,int length)1194 {1195 poly p;1196 int i,j=length;1197 1198 while ((j>0) && (res[j-1]==NULL)) j--;1199 while (j>0)1200 {1201 for (i=0;i<IDELEMS(res[j-1]);i++)1202 {1203 p = res[j-1]->m[i];1204 while (p!=NULL)1205 {1206 if (pLmIsConstantComp(p)) return j;1207 p = pNext(p);1208 }1209 }1210 j--;1211 }1212 return j;1213 } -
kernel/syz.h
r77f279 r49a766 102 102 syStrategy syKosz(ideal arg,int * length); 103 103 104 void syDeleteRes(resolvente * res,int length);105 104 void syKillComputation(syStrategy syzstr, ring r=currRing); 106 105 intvec * syBettiOfComputation(syStrategy syzstr, BOOLEAN minim=TRUE,int * row_shift=NULL, intvec *weights=NULL);
Note: See TracChangeset
for help on using the changeset viewer.