Changeset fca547 in git for Singular/syz1.cc
- Timestamp:
- Apr 3, 1998, 7:38:45 PM (26 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- 5480dab448af565abfd5b8f28e1766de56df7613
- Parents:
- 36ff0ee47861d9c243c573d5f915206fde045c9b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/syz1.cc
r36ff0ee rfca547 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: syz1.cc,v 1.2 3 1998-04-01 19:01:42Singular Exp $ */4 /* $Id: syz1.cc,v 1.24 1998-04-03 17:38:45 Singular Exp $ */ 5 5 /* 6 6 * ABSTRACT: resolutions … … 2265 2265 } 2266 2266 Free((ADDRESS)fr,(result->length)*sizeof(ideal)); 2267 return result; 2268 } 2269 2270 syStrategy syMakeResolution(resolvente r, int length, 2271 intvec ** weights) 2272 { 2273 syStrategy result=(syStrategy)Alloc0(sizeof(ssyStrategy)); 2274 2275 length = max(length,0); 2276 int i=0; 2277 2278 while (i<length) 2279 { 2280 if (r[i]!=NULL) 2281 { 2282 if (i!=0) 2283 { 2284 int rank=IDELEMS(r[i-1]); 2285 if (idIs0(r[i-1])) 2286 { 2287 idDelete(&(r[i])); 2288 r[i]=idFreeModule(rank); 2289 } 2290 else 2291 { 2292 r[i]->rank=max(rank,idRankFreeModule(r[i])); 2293 } 2294 idSkipZeroes(r[i]); 2295 } 2296 } 2297 else 2298 { 2299 // should not happen: 2300 Warn("internal NULL in resolvente"); 2301 r[i]=idInit(1,1); 2302 } 2303 i++; 2304 } 2305 result->fullres = r; 2306 result->length = length; 2267 2307 return result; 2268 2308 }
Note: See TracChangeset
for help on using the changeset viewer.