Inserts poly p without copying into basis, reAllocs Memory if necessary, increases basisSize and returns the new basisSize. Remember: The elements of basis are deleted via pDelete in ~fglmSdata! Sets m= NULL to indicate that now basis is ow(e?)ing the poly.
| 421 | // Remember: The elements of basis are deleted via pDelete in ~fglmSdata! |
| 422 | // Sets m= NULL to indicate that now basis is ow(e?)ing the poly. |
| 423 | int |
| 424 | fglmSdata::newBasisElem( poly & m ) |
| 425 | { |
| 426 | basisSize++; |
| 427 | if ( basisSize == basisMax ) { |
| 428 | basis= (polyset)omReallocSize( basis, basisMax*sizeof( poly ), (basisMax + basisBS)*sizeof( poly ) ); |
| 429 | basisMax+= basisBS; |
| 430 | } |
| 431 | basis[basisSize]= m; |
| 432 | m= NULL; |
| 433 | return basisSize; |
| 434 | } |
| 435 | |
| 436 | // Inserts poly p and fglmvector v without copying into border, reAllocs Memory |
| 437 | // if necessary, and increases borderSize. |
no test coverage detected