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

Function iiRegularity

Singular/ipshell.cc:1036–1060  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1034}
1035
1036int iiRegularity(lists L)
1037{
1038 int len,reg,typ0;
1039
1040 resolvente r=liFindRes(L,&len,&typ0);
1041
1042 if (r==NULL)
1043 return -2;
1044 intvec *weights=NULL;
1045 int add_row_shift=0;
1046 intvec *ww=(intvec *)atGet(&(L->m[0]),"isHomog",INTVEC_CMD);
1047 if (ww!=NULL)
1048 {
1049 weights=ivCopy(ww);
1050 add_row_shift = ww->min_in();
1051 (*weights) -= add_row_shift;
1052 }
1053 //Print("attr:%x\n",weights);
1054
1055 intvec *dummy=syBetti(r,len,&reg,weights);
1056 if (weights!=NULL) delete weights;
1057 delete dummy;
1058 omFreeSize((ADDRESS)r,len*sizeof(ideal));
1059 return reg+1+add_row_shift;
1060}
1061
1062VAR BOOLEAN iiDebugMarker=TRUE;
1063#define BREAK_LINE_LENGTH 80

Callers 1

jjREGULARITYFunction · 0.85

Calls 4

liFindResFunction · 0.85
atGetFunction · 0.85
ivCopyFunction · 0.85
syBettiFunction · 0.85

Tested by

no test coverage detected