Changeset 578051 in git for Singular/iparith.cc
- Timestamp:
- Dec 18, 2017, 4:15:00 PM (6 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- 909b29541ce0c334010bba6696154e22461eb5ce
- Parents:
- 9b58b3fcc6a12daf4ea426458fac85c628277f67179aaba41255e379952db14e553b6a3df355202c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/iparith.cc
r9b58b3f r578051 2199 2199 return FALSE; 2200 2200 } 2201 2202 static BOOLEAN jjFRES3(leftv res, leftv u, leftv v, leftv w) 2203 { 2204 assumeStdFlag(u); 2205 ideal id = (ideal)u->Data(); 2206 int max_length = (int)(long)v->Data(); 2207 if (max_length < 0) { 2208 WerrorS("length for fres must not be negative"); 2209 return TRUE; 2210 } 2211 if (max_length == 0) { 2212 max_length = currRing->N+1; 2213 if (currRing->qideal != NULL) { 2214 Warn("full resolution in a qring may be infinite, " 2215 "setting max length to %d", max_length); 2216 } 2217 } 2218 char *method = (char *)w->Data(); 2219 /* For the moment, only "complete" (default), "frame", or "extended frame" 2220 * are allowed. Another useful option would be "linear strand". 2221 */ 2222 if (strcmp(method, "complete") != 0 2223 && strcmp(method, "frame") != 0 2224 && strcmp(method, "extended frame") != 0) { 2225 WerrorS("wrong optional argument for fres"); 2226 } 2227 syStrategy r = syFrank(id, max_length, method); 2228 assume(r->fullres != NULL); 2229 res->data = (void *)r; 2230 return FALSE; 2231 } 2232 2233 static BOOLEAN jjFRES(leftv res, leftv u, leftv v) 2234 { 2235 leftv w = (leftv)omAlloc0(sizeof(sleftv)); 2236 w->rtyp = STRING_CMD; 2237 w->data = (char *)"complete"; // default 2238 BOOLEAN RES = jjFRES3(res, u, v, w); 2239 omFree(w); 2240 return RES; 2241 } 2242 2201 2243 static BOOLEAN jjFWALK(leftv res, leftv u, leftv v) 2202 2244 {
Note: See TracChangeset
for help on using the changeset viewer.