Changeset 613174 in git for libpolys/polys/monomials/ring.cc
- Timestamp:
- Feb 4, 2011, 3:19:22 PM (13 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- ea11dcde9c525e14e42ef49423d3913e03d714de
- Parents:
- 9c83f2d5961f53cfc901a6f7d33a1e2f1b32e707
- git-author:
- Hans Schoenemann <hannes@mathematik.uni-kl.de>2011-02-04 15:19:22+01:00
- git-committer:
- Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 11:59:28+01:00
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libpolys/polys/monomials/ring.cc
r9c83f2 r613174 793 793 && (rInternalChar(r1)==rInternalChar(r2))) 794 794 { 795 tmpR.ch=r InternalChar(r1);795 tmpR.ch=r1->ch; 796 796 if (rField_is_Q(r1)||rField_is_Zp(r1)||rField_is_GF(r1)) /*Q, Z/p, GF(p,n)*/ 797 797 { … … 946 946 || (r2->ch==-r1->ch)) /* Z/p */ 947 947 { 948 tmpR.ch=r InternalChar(r1);948 tmpR.ch=r1->ch; 949 949 tmpR.P=rPar(r1); 950 950 tmpR.parameter=(char **)omAlloc(rPar(r1)*sizeof(char *)); … … 1007 1007 if (r2->ch==0) /* Q */ 1008 1008 { 1009 tmpR.ch=r InternalChar(r1);1009 tmpR.ch=r1->ch; 1010 1010 tmpR.P=rPar(r1); 1011 1011 tmpR.parameter=(char **)omAlloc(rPar(r1)*sizeof(char *)); … … 1391 1391 idTest((ideal)C); 1392 1392 1393 nMapFunc nMap1 = n_SetMap(R1 ,sum); /* can change something global: not usable1394 after the next nSetMap call :( */1393 nMapFunc nMap1 = n_SetMap(R1->cf,sum->cf); /* can change something global: not usable 1394 after the next nSetMap call :( */ 1395 1395 // Create blocked C and D matrices: 1396 1396 for (i=1; i<= rVar(R1); i++) … … 1408 1408 1409 1409 1410 nMapFunc nMap2 = n_SetMap(R2 ,sum); /* can change something global: not usable1411 after the next nSetMap call :( */1410 nMapFunc nMap2 = n_SetMap(R2->cf,sum->cf); /* can change something global: not usable 1411 after the next nSetMap call :( */ 1412 1412 for (i=1; i<= rVar(R2); i++) 1413 1413 for (j=i+1; j<=rVar(R2); j++) … … 1475 1475 sum->names, rVar(sum), sum->parameter, rPar(sum), 1476 1476 perm1, par_perm1, sum->ch); 1477 nMapFunc nMap1 = n_SetMap(r1 ,sum);1477 nMapFunc nMap1 = n_SetMap(r1->cf,sum->cf); 1478 1478 Q1 = idInit(IDELEMS(r1->qideal),1); 1479 1479 for (int for_i=0;for_i<IDELEMS(r1->qideal);for_i++) … … 1492 1492 sum->names, rVar(sum), sum->parameter, rPar(sum), 1493 1493 perm2, par_perm2, sum->ch); 1494 nMapFunc nMap2 = n_SetMap(r2 ,sum);1494 nMapFunc nMap2 = n_SetMap(r2->cf,sum->cf); 1495 1495 Q2 = idInit(IDELEMS(r2->qideal),1); 1496 1496 for (int for_i=0;for_i<IDELEMS(r2->qideal);for_i++) … … 5419 5419 int *perm = (int *)omAlloc0((rVar(r)+1)*sizeof(int)); 5420 5420 int *par_perm = NULL; 5421 nMapFunc nMap = n_SetMap(src ,r);5421 nMapFunc nMap = n_SetMap(src->cf,r->cf); 5422 5422 int ni,nj; 5423 5423 for(i=1; i<=r->N; i++) … … 5536 5536 const ring srcBase = src; 5537 5537 5538 assume( n_SetMap(srcBase ,dest) == n_SetMap(dest,dest) ); // currRing is important here!5538 assume( n_SetMap(srcBase->cf,dest->cf) == n_SetMap(dest->cf,dest->cf) ); // currRing is important here! 5539 5539 5540 5540 matrix C = mpNew(N,N); // ring independent
Note: See TracChangeset
for help on using the changeset viewer.