for a monomial p, returns the number of the first block */ where a nonzero exponent is sitting */
| 476 | /* for a monomial p, returns the number of the first block */ |
| 477 | /* where a nonzero exponent is sitting */ |
| 478 | int p_mFirstVblock(poly p, const ring ri) |
| 479 | { |
| 480 | if (p == NULL || p_LmIsConstantComp(p,ri)) |
| 481 | { |
| 482 | return(0); |
| 483 | } |
| 484 | |
| 485 | int *e=(int *)omAlloc((ri->N+1)*sizeof(int)); |
| 486 | p_GetExpV(p,e,ri); |
| 487 | int b = p_mFirstVblock(p, e, ri); |
| 488 | omFreeSize((ADDRESS) e, (ri->N+1)*sizeof(int)); |
| 489 | return b; |
| 490 | } |
| 491 | |
| 492 | /* for a monomial p with exponent vector expV, returns the number of the first block */ |
| 493 | /* where a nonzero exponent is sitting */ |
no test coverage detected