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

Function idCreateSpecialKbase

kernel/ideals.cc:2543–2556  ·  view source on GitHub ↗

2 *sorts the kbase for idCoef* in a special way (lexicographically *with x_max,...,x_1) */

Source from the content-addressed store, hash-verified

2541*with x_max,...,x_1)
2542*/
2543ideal idCreateSpecialKbase(ideal kBase,intvec ** convert)
2544{
2545 int i;
2546 ideal result;
2547
2548 if (idIs0(kBase)) return NULL;
2549 result = idInit(IDELEMS(kBase),kBase->rank);
2550 *convert = idSort(kBase,FALSE);
2551 for (i=0;i<(*convert)->length();i++)
2552 {
2553 result->m[i] = pCopy(kBase->m[(**convert)[i]-1]);
2554 }
2555 return result;
2556}
2557
2558/*2
2559*returns the index of a given monom in the list of the special kbase

Callers 1

idCoeffOfKBaseFunction · 0.85

Calls 4

idIs0Function · 0.85
idInitFunction · 0.85
idSortFunction · 0.85
lengthMethod · 0.45

Tested by

no test coverage detected