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

Function p_DebugInit

libpolys/polys/pDebug.cc:194–209  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

192extern void p_Setm_General(poly p, ring r);
193
194static poly p_DebugInit(poly p, ring src_ring, ring dest_ring)
195{
196 poly d_p = p_Init(dest_ring);
197 int i;
198 assume(dest_ring->N == src_ring->N);
199
200 for (i=1; i<= src_ring->N; i++)
201 {
202 p_SetExp(d_p, i, p_GetExp(p, i, src_ring), dest_ring);
203 }
204 if (rRing_has_Comp(dest_ring))
205 p_SetComp(d_p, p_GetComp(p, src_ring), dest_ring);
206
207 p_Setm_General(d_p, dest_ring);
208 return d_p;
209}
210
211BOOLEAN _p_Test(poly p, ring r, int level)
212{

Callers 2

_p_TestFunction · 0.85
_pp_TestFunction · 0.85

Calls 5

p_InitFunction · 0.85
p_SetExpFunction · 0.85
p_GetExpFunction · 0.85
p_SetCompFunction · 0.85
p_Setm_GeneralFunction · 0.85

Tested by

no test coverage detected