MCPcopy Create free account
hub / github.com/Singular/Singular / newBasisElem

Method newBasisElem

kernel/fglm/fglmzero.cc:423–434  ·  view source on GitHub ↗

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.

Source from the content-addressed store, hash-verified

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.
423int
424fglmSdata::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.

Callers 2

GroebnerViaFunctionalsFunction · 0.80

Calls 3

oldGaussElemMethod · 0.80
getconstelemMethod · 0.45
insertElemMethod · 0.45

Tested by

no test coverage detected