| 1354 | |
| 1355 | |
| 1356 | BOOLEAN binomial::involves_elimination_variables(const term_ordering& w) |
| 1357 | { |
| 1358 | // The use of support information would require the distinction of various |
| 1359 | // cases here (relation between the number of variables to eliminate |
| 1360 | // and the number of support variables) and be quite difficult. |
| 1361 | // It is doubtful if this would improve performance. |
| 1362 | // As this function is not used in Buchberger´s algorithm (and therefore |
| 1363 | // rather rarely), I renounce to implement this. |
| 1364 | |
| 1365 | for(short i=0;i<w.number_of_elimination_variables();i++) |
| 1366 | // elimination variables are always the last ones |
| 1367 | if(exponent_vector[_number_of_variables-1-i]!=0) |
| 1368 | return TRUE; |
| 1369 | |
| 1370 | return FALSE; |
| 1371 | } |
| 1372 | |
| 1373 | |
| 1374 |
no test coverage detected