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

Function maMap_CreatePolyIdeal

kernel/maps/fast_maps.cc:255–279  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

253*/
254
255void maMap_CreatePolyIdeal(ideal map_id, ring map_r, ring src_r, ring dest_r,
256 mapoly &mp, maideal &mideal)
257{
258 mideal = (maideal) omAlloc0(sizeof(maideal_s));
259 mideal->n = IDELEMS(map_id);
260 mideal->buckets = (sBucket_pt*) omAlloc0(mideal->n*sizeof(sBucket_pt));
261 int i;
262 mp = NULL;
263
264 for (i=0; i<mideal->n; i++)
265 {
266 if (map_id->m[i] != NULL)
267 {
268 mideal->buckets[i] = sBucketCreate(dest_r);
269 maPoly_InsertPoly(mp,
270#ifdef PDEBUG
271 prShallowCopyR(map_id->m[i], map_r, src_r),
272#else
273 prShallowCopyR_NoSort(map_id->m[i], map_r, src_r),
274#endif
275 src_r,
276 mideal->buckets[i]);
277 }
278 }
279}
280
281void maMap_CreateRings(ideal map_id, ring map_r,
282 ideal image_id, ring image_r,

Callers 1

fast_map_common_subexpFunction · 0.85

Calls 4

omAlloc0Function · 0.85
sBucketCreateFunction · 0.85
prShallowCopyRFunction · 0.85
prShallowCopyR_NoSortFunction · 0.85

Tested by

no test coverage detected