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

Function MivSame

Singular/walk.cc:894–908  ·  view source on GitHub ↗

* Compare two given intvecs and return 1, if they * * are the same, otherwise 0 * *****************************************************/

Source from the content-addressed store, hash-verified

892 * are the same, otherwise 0 *
893 *****************************************************/
894int MivSame(intvec* u , intvec* v)
895{
896 assume(u->length() == v->length());
897
898 int i, niv = u->length();
899
900 for (i=0; i<niv; i++)
901 {
902 if ((*u)[i] != (*v)[i])
903 {
904 return 0;
905 }
906 }
907 return 1;
908}
909
910/******************************************************
911 * Compare 3 given intvecs and return 0, if the first *

Callers 14

jjSYSTEMFunction · 0.85
M3ivSameFunction · 0.85
MAltwalk2Function · 0.85
MWalkRandomNextWeightFunction · 0.85
MwalkAltFunction · 0.85
MpwalkFunction · 0.85
MprwalkFunction · 0.85
rec_fractal_callFunction · 0.85
rec_r_fractal_callFunction · 0.85
MfwalkFunction · 0.85
MfrwalkFunction · 0.85
TranMImprovwalkFunction · 0.85

Calls 1

lengthMethod · 0.45

Tested by

no test coverage detected