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

Function missingAxis

kernel/GBEngine/kstd1.cc:1280–1303  ·  view source on GitHub ↗

2 *looks whether exactly (currRing->N)-1 axis are used *returns last != 0 in this case *last is the (first) unused axis */

Source from the content-addressed store, hash-verified

1278*last is the (first) unused axis
1279*/
1280void missingAxis (int* last,kStrategy strat)
1281{
1282 int i = 0;
1283 int k = 0;
1284
1285 *last = 0;
1286 if (!rHasMixedOrdering(currRing))
1287 {
1288 loop
1289 {
1290 i++;
1291 if (i > (currRing->N)) break;
1292 if (strat->NotUsedAxis[i])
1293 {
1294 *last = i;
1295 k++;
1296 }
1297 if (k>1)
1298 {
1299 *last = 0;
1300 break;
1301 }
1302 }
1303 }
1304}
1305
1306/*2

Callers 2

enterSMoraFunction · 0.85
moraFunction · 0.85

Calls 1

rHasMixedOrderingFunction · 0.85

Tested by

no test coverage detected