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

Function fglmzero

kernel/fglm/fglmzero.cc:1192–1215  ·  view source on GitHub ↗

for a description of the parameters see fglm.h

Source from the content-addressed store, hash-verified

1190
1191// for a description of the parameters see fglm.h
1192BOOLEAN
1193fglmzero( ring sourceRing, ideal & sourceIdeal, ring destRing, ideal & destIdeal, BOOLEAN switchBack, BOOLEAN deleteIdeal )
1194{
1195 ring initialRing = currRing;
1196 BOOLEAN fglmok;
1197
1198 if ( currRing != sourceRing )
1199 {
1200 rChangeCurrRing( sourceRing );
1201 }
1202 idealFunctionals L( 100, rVar(currRing) );
1203 fglmok = CalculateFunctionals( sourceIdeal, L );
1204 if ( deleteIdeal == TRUE )
1205 idDelete( & sourceIdeal );
1206 rChangeCurrRing( destRing );
1207 if ( fglmok == TRUE )
1208 {
1209 L.map( sourceRing );
1210 destIdeal= GroebnerViaFunctionals( L );
1211 }
1212 if ( (switchBack) && (currRing != initialRing) )
1213 rChangeCurrRing( initialRing );
1214 return fglmok;
1215}
1216
1217BOOLEAN
1218fglmquot( ideal sourceIdeal, poly quot, ideal & destIdeal)

Callers 1

fglmProcFunction · 0.85

Calls 5

rChangeCurrRingFunction · 0.85
rVarFunction · 0.85
CalculateFunctionalsFunction · 0.85
GroebnerViaFunctionalsFunction · 0.85
mapMethod · 0.45

Tested by

no test coverage detected