Changeset 8b00ca in git


Ignore:
Timestamp:
Jul 14, 2014, 4:58:16 PM (9 years ago)
Author:
Martin Lee <martinlee84@…>
Branches:
(u'spielwiese', '8e0ad00ce244dfd0756200662572aef8402f13d5')
Children:
b90a36f1c9a83b6e90583185b26f6c5730b47975
Parents:
03f640f7f62621edbfe49fd44dd3646e7f33da1c
git-author:
Martin Lee <martinlee84@web.de>2014-07-14 16:58:16+02:00
git-committer:
Martin Lee <martinlee84@web.de>2014-07-17 12:07:11+02:00
Message:
chg: pruning in conversion to factory
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpolys/polys/clapsing.cc

    r03f640 r8b00ca  
    124124                    G( convSingAPFactoryAP( g,a,r ) );
    125125      res= convFactoryAPSingAP( gcd( F, G ),r );
     126      prune (a);
    126127      if (!b1) Off(SW_USE_QGCD);
    127128    }
     
    235236      }
    236237      res= convFactoryAPSingAP( GCD,r );
     238      prune (a);
    237239      if (!b1) Off(SW_USE_QGCD);
    238240    }
     
    343345                    G( convSingAPFactoryAP( g,a,r ) );
    344346      res= convFactoryAPSingAP( resultant( F, G, X ),r );
     347      prune (a);
    345348    }
    346349    else
     
    497500      pa=convFactoryAPSingAP(Fa,r);
    498501      pb=convFactoryAPSingAP(Gb,r);
     502      prune (a);
    499503    }
    500504    else
     
    556560                    G( convSingAPFactoryAP( g,a,r ) );
    557561      res= convFactoryAPSingAP(  F / G, r  );
     562      prune (a);
    558563    }
    559564    else
     
    745750      }
    746751    }
     752    if (r->cf->extRing!=NULL)
     753      if (r->cf->extRing->qideal!=NULL)
     754        prune (a);
    747755    if (e==0)
    748756    {
     
    841849  number old_lead_coeff=n_Copy(pGetCoeff(f), r->cf);
    842850
     851  Variable a;
    843852  if (!rField_is_Zp(r) && !rField_is_Zp_a(r)) /* Q, Q(a) */
    844853  {
     
    894903      CanonicalForm mipo=convSingPFactoryP(r->cf->extRing->qideal->m[0],
    895904                                           r->cf->extRing);
    896       Variable a=rootOf(mipo);
     905      a=rootOf(mipo);
    897906      CanonicalForm F( convSingAPFactoryAP( f, a, r ) );
    898907      if (rField_is_Zp_a(r))
     
    982991      }
    983992    }
     993    if (r->cf->extRing!=NULL)
     994      if (r->cf->extRing->qideal!=NULL)
     995        prune (a);
    984996#ifndef SING_NDEBUG
    985997    if ((r->cf->extRing!=NULL) && (!p_IsConstantPoly(ff,r)))
     
    12101222  number NN=NULL;
    12111223  number old_lead_coeff=n_Copy(pGetCoeff(f), r->cf);
     1224  Variable a;
    12121225
    12131226  if (!rField_is_Zp(r) && !rField_is_Zp_a(r)) /* Q, Q(a) */
     
    12611274      CanonicalForm mipo=convSingPFactoryP(r->cf->extRing->qideal->m[0],
    12621275                                           r->cf->extRing);
    1263       Variable a=rootOf(mipo);
     1276      a=rootOf(mipo);
    12641277      CanonicalForm F( convSingAPFactoryAP( f, a, r ) );
    12651278      L= sqrFree (F);
     
    13361349    }
    13371350  }
     1351  if (r->cf->extRing!=NULL)
     1352    if (r->cf->extRing->qideal!=NULL)
     1353      prune (a);
    13381354  if (rField_is_Q_a(r) && (r->cf->extRing->qideal!=NULL))
    13391355  {
     
    17941810      mipos->m[i]= convFactoryPSingTrP (replacevar (iter.getItem().minpoly(), alpha, x), r);
    17951811    }
     1812    if (!iter.getItem().minpoly().isOne())
     1813      prune (alpha);
    17961814    numFactors += count;
    17971815  }
Note: See TracChangeset for help on using the changeset viewer.