Changeset 9d68fd in git for Singular/maps_ip.cc
- Timestamp:
- Feb 25, 2013, 3:35:27 PM (11 years ago)
- Branches:
- (u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', 'b4f17ed1d25f93d46dbe29e4b499baecc2fd51bb')
- Children:
- 1c94e44b6b2645f28d5bc81b7b3facc71b2b582d
- Parents:
- 27c79fcbc083eb57ec1345d22a6892cf162f017b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/maps_ip.cc
r27c79f r9d68fd 82 82 if (nCoeff_is_Extension(currRing->cf)) 83 83 res->data=(void *)p_MinPolyNormalize((poly)res->data, currRing); 84 pTest((poly) res->data); 84 pTest((poly) res->data); 85 85 } 86 86 else 87 87 { 88 89 90 91 92 88 assume( nMap != NULL ); 89 90 number a = nMap((number)data, preimage_r->cf, currRing->cf); 91 92 93 93 if (nCoeff_is_Extension(currRing->cf)) 94 94 { … … 96 96 /* 97 97 number a = (number)res->data; 98 98 number one = nInit(1); 99 99 number product = nMult(a, one ); 100 101 100 nDelete(&one); 101 nDelete(&a); 102 102 res->data=(void *)product; 103 103 */ … … 119 119 else /*if (what==MAP_CMD)*/ 120 120 { 121 p_Test((poly)data,preimage_r); 121 122 matrix s=mpNew(N,maMaxDeg_P((poly)data, preimage_r)); 122 123 res->data=(void *)maEval(theMap, (poly)data, preimage_r, nMap, (ideal)s, currRing); … … 157 158 { 158 159 m->m[i]=p_PermPoly(((ideal)data)->m[i],perm,preimage_r,currRing, 159 160 nMap,par_perm,P); 160 161 pTest(m->m[i]); 161 162 } … … 247 248 else 248 249 theMapI->m[i-1] = p_Copy(image, currRing); 249 } 250 250 p_Test(theMapI->m[i-1],currRing); 251 } 252 //iiWriteMatrix((matrix)theMapI,"map:",1,currRing,0); 251 253 252 254 map theMap=(map)theMapI; … … 257 259 poly res=NULL; 258 260 261 p_Normalize(p,currRing); 259 262 while (p!=NULL) 260 263 { … … 265 268 266 269 if ( n_IsOne (d, currRing->cf) ) 267 { 270 { 268 271 n_Delete(&d, currRing); d = NULL; 269 } 272 } 270 273 else if (!p_IsConstant((poly)NUM(d), R)) 271 { 274 { 272 275 WarnS("ignoring denominators of coefficients..."); 273 276 n_Delete(&d, currRing); d = NULL; 274 } 277 } 275 278 276 279 number num = n_GetNumerator(p_GetCoeff(p, currRing), currRing); … … 281 284 tmpW.data = NUM (num); // a copy of this poly will be used 282 285 286 p_Normalize(NUM(num),R); 283 287 if (maApplyFetch(MAP_CMD,theMap,v,&tmpW,R,NULL,NULL,0,nMap)) 284 288 { … … 364 368 leftv v=(leftv)omAlloc0Bin(sleftv_bin); 365 369 if (maApplyFetch(MAP_CMD,theMap,v,&tmpW,currRing,NULL,NULL,0, 366 370 n_SetMap(currRing->cf, currRing->cf))) 367 371 { 368 372 WerrorS("map failed"); … … 407 411 tmpW.data=id; 408 412 if (maApplyFetch(MAP_CMD,theMap,v,&tmpW,currRing,NULL,NULL,0, 409 413 n_SetMap(currRing->cf, currRing->cf))) 410 414 { 411 415 WerrorS("map failed");
Note: See TracChangeset
for help on using the changeset viewer.