2 *looks whether exactly (currRing->N)-1 axis are used *returns last != 0 in this case *last is the (first) unused axis */
| 1278 | *last is the (first) unused axis |
| 1279 | */ |
| 1280 | void 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 |
no test coverage detected