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

Function hSupp

kernel/combinatorics/hutil.cc:174–197  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

172
173
174void hSupp(scfmon stc, int Nstc, varset var, int *Nvar)
175{
176 int nv, i0, i1, i, j;
177 nv = i0 = *Nvar;
178 i1 = 0;
179 for (i = 1; i <= nv; i++)
180 {
181 j = 0;
182 loop
183 {
184 if (stc[j][i]>0)
185 {
186 i1++;
187 var[i1] = i;
188 break;
189 }
190 j++;
191 if (j == Nstc)
192 {
193 var[i0] = i;
194 i0--;
195 break;
196 }
197 }
198 }
199 *Nvar = i1;
200}

Callers 6

scIndIndsetFunction · 0.85
hSeriesFunction · 0.85
scDimIntFunction · 0.85
scIndIntvecFunction · 0.85
hDegreeFunction · 0.85
scMult0IntFunction · 0.85

Calls 1

ifFunction · 0.50

Tested by

no test coverage detected