Changeset 832330 in git for Singular/maps_ip.cc
- Timestamp:
- Jan 21, 2016, 3:43:54 PM (8 years ago)
- Branches:
- (u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', 'b4f17ed1d25f93d46dbe29e4b499baecc2fd51bb')
- Children:
- 5f46166c7775b4b01ad9b5572aebcd849a244ef5
- Parents:
- 276224e615df5b49675413a43dc12da95dc2221d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/maps_ip.cc
r276224e r832330 26 26 27 27 #include <kernel/GBEngine/kstd1.h> 28 #include <kernel/maps/gen_maps.h> 28 29 29 30 #include "maps_ip.h" … … 365 366 } 366 367 #endif 367 map theMap=(map)idMaxIdeal(1); 368 theMap->preimage=NULL; 369 pDelete(&(theMap->m[var-1])); 370 theMap->m[var-1]=pCopy(image); 371 372 sleftv tmpW; 373 memset(&tmpW,0,sizeof(sleftv)); 374 tmpW.rtyp=POLY_CMD; 375 tmpW.data=p; 376 leftv v=(leftv)omAlloc0Bin(sleftv_bin); 377 if (maApplyFetch(MAP_CMD,theMap,v,&tmpW,currRing,NULL,NULL,0, 378 n_SetMap(currRing->cf, currRing->cf))) 379 { 380 WerrorS("map failed"); 381 v->data=NULL; 382 } 383 poly res=(poly)(v->data); 384 omFreeBin((ADDRESS)v, sleftv_bin); 385 idDelete((ideal *)(&theMap)); 386 return res; 368 return p_SubstPoly(p,var,image,currRing,currRing,ndCopyMap); 387 369 } 388 370 … … 407 389 } 408 390 #endif 409 map theMap=(map)idMaxIdeal(1); 410 theMap->preimage=NULL; 411 pDelete(&(theMap->m[n-1])); 412 theMap->m[n-1]=pCopy(e); 413 414 leftv v=(leftv)omAlloc0Bin(sleftv_bin); 415 sleftv tmpW; 416 memset(&tmpW,0,sizeof(sleftv)); 417 tmpW.rtyp=IDEAL_CMD; 418 tmpW.data=id; 419 if (maApplyFetch(MAP_CMD,theMap,v,&tmpW,currRing,NULL,NULL,0, 420 n_SetMap(currRing->cf, currRing->cf))) 421 { 422 WerrorS("map failed"); 423 v->data=NULL; 424 } 425 ideal res=(ideal)(v->data); 426 idDelete((ideal *)(&theMap)); 427 omFreeBin((ADDRESS)v, sleftv_bin); 428 return res; 429 } 391 return id_SubstPoly(id,n,e,currRing,currRing,ndCopyMap); 392 }
Note: See TracChangeset
for help on using the changeset viewer.