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

Function MivSub

Singular/walk.cc:862–873  ·  view source on GitHub ↗

* Substract two given intvecs componentwise * *****************************************************/

Source from the content-addressed store, hash-verified

860 * Substract two given intvecs componentwise *
861 *****************************************************/
862static intvec* MivSub(intvec* a, intvec* b)
863{
864 assume( a->length() == b->length());
865 int i, n = a->length();
866 intvec* result = new intvec(n);
867
868 for(i=n-1; i>=0; i--)
869 {
870 (*result)[i] = (*a)[i] - (*b)[i];
871 }
872 return result;
873}
874
875/*****************************************************
876 * return the "intvec" lead exponent of a polynomial *

Callers 1

MwalkNextWeightCCFunction · 0.85

Calls 1

lengthMethod · 0.45

Tested by

no test coverage detected