Changeset a31f248 in git
- Timestamp:
- Mar 7, 2002, 7:49:16 PM (21 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'f875bbaccd0831e36aaed09ff6adeb3eb45aeb94')
- Children:
- 5ee3246883b72c3d70174075aadf91e31aa7cc1e
- Parents:
- c1975864ec9e675a62cefef438dc443d378d5ce4
- Location:
- Singular
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/maps.cc
rc19758 ra31f248 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: maps.cc,v 1.3 8 2002-01-22 09:57:53 Singular Exp $ */4 /* $Id: maps.cc,v 1.39 2002-03-07 18:48:13 Singular Exp $ */ 5 5 /* 6 6 * ABSTRACT - the mapping of polynomials to other rings … … 671 671 return rp.next; 672 672 } 673 674 poly pSubstPoly(poly p, int var, poly image) 675 { 676 map theMap=(map)idMaxIdeal(1); 677 theMap->preimage=NULL; 678 pDelete(&(theMap->m[var-1])); 679 theMap->m[var-1]=pCopy(image); 680 681 leftv v=(leftv)omAlloc0Bin(sleftv_bin); 682 sleftv tmpW; 683 memset(&tmpW,0,sizeof(sleftv)); 684 tmpW.rtyp=POLY_CMD; 685 tmpW.data=p; 686 poly res=NULL; 687 if (maApplyFetch(MAP_CMD,theMap,v,&tmpW,currRing,NULL,NULL,0,nCopy)) 688 { 689 WerrorS("map failed"); 690 v->data=NULL; 691 } 692 res=(poly)(v->data); 693 idDelete((ideal *)(&theMap)); 694 omFreeBin((ADDRESS)v, sleftv_bin); 695 return res; 696 } 697 -
Singular/maps.h
rc19758 ra31f248 4 4 * Computer Algebra System SINGULAR * 5 5 ****************************************/ 6 /* $Id: maps.h,v 1. 9 2000-12-15 18:49:33Singular Exp $ */6 /* $Id: maps.h,v 1.10 2002-03-07 18:48:58 Singular Exp $ */ 7 7 /* 8 8 * ABSTRACT - the mapping of polynomials to other rings … … 23 23 char **names, int n, char **par, int nop, 24 24 int * perm, int *par_perm, int ch); 25 poly pSubstPoly(poly p, int var, poly image); 25 26 #endif
Note: See TracChangeset
for help on using the changeset viewer.