Changeset b8f8ea in git for factory/facFqBivarUtil.cc


Ignore:
Timestamp:
Apr 9, 2013, 3:24:54 PM (10 years ago)
Author:
Oleksandr Motsak <motsak@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', '2234726c50d679d6664181a5c72f75a6fd64a787')
Children:
84299e1e1d2b92c5e28fc52391cc529f8eb8ade7f8565ac2b56eae4e46fb63670efa1bc402ae3628
Parents:
8e48d4973dda2a880260a9e9a6e0705b49ab77960b447e5e0cc1cede9cfd6c91fab1752432a2bd62
Message:
Merge pull request #314 from mmklee/factory_bugfix_sw

Factory bugfix sw
File:
1 edited

Legend:

Unmodified
Added
Removed
  • factory/facFqBivarUtil.cc

    r8e48d49 rb8f8ea  
    468468  for (CFIterator i= logDeriv; i.hasTerms() && !logDeriv.isZero(); i++)
    469469  {
    470     for (ii= i.coeff(); ii.hasTerms(); ii++)
    471       result[ii.exp()] += ii.coeff()*power (x,i.exp());
     470    if (i.coeff().inCoeffDomain())
     471      result[0] += i.coeff()*power (x,i.exp());
     472    else
     473    {
     474      for (ii= i.coeff(); ii.hasTerms(); ii++)
     475        result[ii.exp()] += ii.coeff()*power (x,i.exp());
     476    }
    472477  }
    473478  Q= q;
     
    541546  for (CFIterator i= logDeriv; i.hasTerms() && !logDeriv.isZero(); i++)
    542547  {
    543     for (ii= i.coeff(); ii.hasTerms(); ii++)
    544       result[ii.exp()] += ii.coeff()*power (x,i.exp());
     548    if (i.coeff().inCoeffDomain())
     549      result[0] += i.coeff()*power (x,i.exp());
     550    else
     551    {
     552      for (ii= i.coeff(); ii.hasTerms(); ii++)
     553        result[ii.exp()] += ii.coeff()*power (x,i.exp());
     554    }
    545555  }
    546556  Q= q;
Note: See TracChangeset for help on using the changeset viewer.