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

Function id_FreeModule

libpolys/polys/simpleideals.cc:1172–1189  ·  view source on GitHub ↗

the free module of rank i

Source from the content-addressed store, hash-verified

1170
1171/// the free module of rank i
1172ideal id_FreeModule (int i, const ring r)
1173{
1174 assume(i >= 0);
1175 if (r->isLPring)
1176 {
1177 PrintS("In order to address bimodules, the command freeAlgebra should be used.");
1178 }
1179 ideal h = idInit(i, i);
1180
1181 for (int j=0; j<i; j++)
1182 {
1183 h->m[j] = p_One(r);
1184 p_SetComp(h->m[j],j+1,r);
1185 p_SetmComp(h->m[j],r);
1186 }
1187
1188 return h;
1189}
1190
1191/*2
1192*computes recursively all monomials of a certain degree

Callers 3

jjidFreeModuleFunction · 0.85
liMakeResolvFunction · 0.85
idFreeModuleFunction · 0.85

Calls 4

PrintSFunction · 0.85
idInitFunction · 0.85
p_OneFunction · 0.85
p_SetCompFunction · 0.85

Tested by

no test coverage detected