Ignore:
Timestamp:
Mar 20, 2012, 4:30:55 PM (12 years ago)
Author:
Oleksandr Motsak <motsak@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
3c0498bc95dd8c5ea36ad1a10baf29d12384fb79619d037962e428d4a002157d93e48cb0d12fc2d2
Parents:
823e1a54509e83cc2203b2bdde54b81bb025d770d42add3b64daed7b6de0cf1e38850fe2aafa1d42
Message:
Merge pull request #87 from mmklee/rSum_fix

R sum fix
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpolys/polys/monomials/ring.cc

    r823e1a r2d2c99c  
    826826        r1->cf->ref++;
    827827      }
    828       else if ((getCoeffType (r2->cf)==n_algExt || getCoeffType (r2->cf)==n_transExt) && rChar(r2) == rChar(r1))
    829       {
    830         /*AlgExtInfo extParam;
    831         extParam.r = r2->cf->extRing;
    832         extParam.i = r2->cf->extRing->minideal;*/
     828      else if (nCoeff_is_Extension(r2->cf) && rChar(r2) == rChar(r1))
     829      {
    833830        tmpR.cf=r2->cf;
    834831        r2->cf->ref++;
     
    852849        r2->cf->ref++;
    853850      }
    854       else if (getCoeffType(r2->cf)==n_algExt || getCoeffType(r2->cf)==n_transExt)
     851      else if (nCoeff_is_Extension(r2->cf))
    855852      {
    856853        tmpR.cf=r2->cf;
     
    860857      {
    861858        WerrorS("Q+...");
     859        return -1;
     860      }
     861    }
     862    else if (nCoeff_is_Extension(r1->cf))
     863    {
     864      if (r1->cf->extRing->cf==r2->cf)
     865      {
     866        tmpR.cf=r1->cf;
     867        r1->cf->ref++;
     868      }
     869      else if (getCoeffType(r1->cf->extRing->cf)==n_Zp && getCoeffType(r2->cf)==n_Q) //r2->cf == n_Zp should have been handled above
     870      {
     871        tmpR.cf=r1->cf;
     872        r1->cf->ref++;
     873      }
     874      else
     875      {
     876        WerrorS ("coeff sum of two extension fields not implemented");
    862877        return -1;
    863878      }
Note: See TracChangeset for help on using the changeset viewer.