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

Function iv2array

libpolys/polys/weight.cc:200–210  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

198}
199
200int * iv2array(intvec * iv, const ring R)
201{
202 int *s=(int *)omAlloc0((rVar(R)+1)*sizeof(int));
203 int len=0;
204 if(iv!=NULL)
205 len=si_min(iv->length(),rVar(R)); // usually: rVar(R)==length()
206 int i;
207 //for(i=pVariables;i>len;i--) s[i]=1;
208 for(i=len;i>0;i--) s[i]=(*iv)[i-1];
209 return s;
210}
211
212/*2
213*computes the degree of the leading term of the polynomial

Callers 8

id_JetWFunction · 0.85
p_InversFunction · 0.85
p_SeriesFunction · 0.85
jjEXTENDED_SYSTEMFunction · 0.85
jjDEG_M_IVFunction · 0.85
jjDEG_IVFunction · 0.85
jjJET_P_IVFunction · 0.85
jjDIVISION4Function · 0.85

Calls 4

omAlloc0Function · 0.85
rVarFunction · 0.85
si_minFunction · 0.85
lengthMethod · 0.45

Tested by

no test coverage detected