| 253 | */ |
| 254 | |
| 255 | void 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 | |
| 281 | void maMap_CreateRings(ideal map_id, ring map_r, |
| 282 | ideal image_id, ring image_r, |
no test coverage detected