MCPcopy Create free account
hub / github.com/Singular/Singular / syForceMin

Function syForceMin

Singular/ipshell.cc:3279–3293  ·  view source on GitHub ↗

3 * converts a list of modules into a minimal resolution */

Source from the content-addressed store, hash-verified

3277* converts a list of modules into a minimal resolution
3278*/
3279syStrategy syForceMin(lists li)
3280{
3281 int typ0;
3282 syStrategy result=(syStrategy)omAlloc0(sizeof(ssyStrategy));
3283
3284 resolvente fr = liFindRes(li,&(result->length),&typ0);
3285 result->minres = (resolvente)omAlloc0((result->length+1)*sizeof(ideal));
3286 for (int i=result->length-1;i>=0;i--)
3287 {
3288 if (fr[i]!=NULL)
3289 result->minres[i] = idCopy(fr[i]);
3290 }
3291 omFreeSize((ADDRESS)fr,(result->length)*sizeof(ideal));
3292 return result;
3293}
3294#endif
3295// from weight.cc
3296BOOLEAN kWeight(leftv res,leftv id)

Callers

nothing calls this directly

Calls 3

omAlloc0Function · 0.85
liFindResFunction · 0.85
idCopyFunction · 0.85

Tested by

no test coverage detected