* define a reverse lexicographic order (dp) matrix as intvec * *****************************************************************************/
| 1416 | * define a reverse lexicographic order (dp) matrix as intvec * |
| 1417 | *****************************************************************************/ |
| 1418 | intvec* MivMatrixOrderdp(int nV) |
| 1419 | { |
| 1420 | int i; |
| 1421 | intvec* ivM = new intvec(nV*nV); |
| 1422 | |
| 1423 | for(i=0; i<nV; i++) |
| 1424 | { |
| 1425 | (*ivM)[i] = 1; |
| 1426 | } |
| 1427 | for(i=1; i<nV; i++) |
| 1428 | { |
| 1429 | (*ivM)[(i+1)*nV - i] = -1; |
| 1430 | } |
| 1431 | return(ivM); |
| 1432 | } |
| 1433 | |
| 1434 | /***************************************************************************** |
| 1435 | * creates an intvec of the monomial order Wp(ivstart) * |