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

Function setUnit

kernel/GBEngine/kLiftstd.cc:334–346  ·  view source on GitHub ↗

---------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

332
333//---------------------------------------------------------------------------
334static void setUnit(int e, ideal *unit)
335{
336 if (unit!=NULL)
337 {
338 *unit=idInit(e,e);
339 for(int i=e-1;i>=0;i--)
340 {
341 poly p=pOne();
342 p_Shift(&p,i+1,currRing);
343 (*unit)->m[i]=p;
344 }
345 }
346}
347ideal idDivRem(ideal A,const ideal quot, ideal &factor,ideal *unit,int lazyReduce)
348{
349 /* special cases */

Callers 1

idDivRemFunction · 0.85

Calls 2

idInitFunction · 0.85
p_ShiftFunction · 0.85

Tested by

no test coverage detected