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

Function id_GCD

kernel/ideals.cc:2945–2959  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2943
2944#if 0
2945poly id_GCD(poly f, poly g, const ring r)
2946{
2947 ring save_r=currRing;
2948 rChangeCurrRing(r);
2949 ideal I=idInit(2,1); I->m[0]=f; I->m[1]=g;
2950 intvec *w = NULL;
2951 ideal S=idSyzygies(I,testHomog,&w);
2952 if (w!=NULL) delete w;
2953 poly gg=pTakeOutComp(&(S->m[0]),2);
2954 idDelete(&S);
2955 poly gcd_p=singclap_pdivide(f,gg,r);
2956 p_Delete(&gg,r);
2957 rChangeCurrRing(save_r);
2958 return gcd_p;
2959}
2960#else
2961poly id_GCD(poly f, poly g, const ring r)
2962{

Callers

nothing calls this directly

Calls 8

rChangeCurrRingFunction · 0.85
idInitFunction · 0.85
idSyzygiesFunction · 0.85
pTakeOutCompFunction · 0.85
singclap_pdivideFunction · 0.85
p_DeleteFunction · 0.85
p_TakeOutCompFunction · 0.85
id_DeleteFunction · 0.85

Tested by

no test coverage detected