Changeset e243f1d in git
- Timestamp:
- Jul 17, 2014, 6:13:53 PM (9 years ago)
- Branches:
- (u'spielwiese', '8e0ad00ce244dfd0756200662572aef8402f13d5')
- Children:
- 33d6103f93e00982d97c8b9987b7d8142775a7cc
- Parents:
- 2a2e433d4416b4a41ad54af2f8b70c037e825787
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/maps_ip.cc
r2a2e43 re243f1d 279 279 280 280 number num = n_GetNumerator(p_GetCoeff(p, currRing), currRing); 281 assume( p_Test((poly)NUM(num), R) );282 283 281 memset(&tmpW,0,sizeof(sleftv)); 284 282 tmpW.rtyp = POLY_CMD; 285 tmpW.data = NUM (num); // a copy of this poly will be used 286 287 p_Normalize(NUM(num),R); 288 if (maApplyFetch(MAP_CMD,theMap,v,&tmpW,R,NULL,NULL,0,nMap)) 289 { 290 WerrorS("map failed"); 291 v->data=NULL; 292 } 293 n_Delete(&num, currRing); 294 283 if (num==NULL) // minpoly 284 { 285 num=(number)(currRing->cf->extRing->qideal->m[0]); 286 tmpW.data = num; 287 if (maApplyFetch(MAP_CMD,theMap,v,&tmpW,R,NULL,NULL,0,nMap)) 288 { 289 WerrorS("map failed"); 290 v->data=NULL; 291 } 292 } 293 else 294 { 295 assume( p_Test((poly)NUM(num), R) ); 296 297 tmpW.data = NUM (num); // a copy of this poly will be used 298 299 p_Normalize(NUM(num),R); 300 if (maApplyFetch(MAP_CMD,theMap,v,&tmpW,R,NULL,NULL,0,nMap)) 301 { 302 WerrorS("map failed"); 303 v->data=NULL; 304 } 305 n_Delete(&num, currRing); 306 } 295 307 //TODO check for memory leaks 296 308 poly pp = pHead(p);
Note: See TracChangeset
for help on using the changeset viewer.