Changeset b2c7a2 in git for factory/facBivar.cc


Ignore:
Timestamp:
Nov 10, 2012, 12:19:17 AM (11 years ago)
Author:
Martin Lee <martinlee84@…>
Branches:
(u'spielwiese', '0d6b7fcd9813a1ca1ed4220cfa2b104b97a0a003')
Children:
a37b349f287fe6d4265acc1b2ec7c20faafa6ea1
Parents:
6dfc398e71ea196ccb6f9d8b8eb795ebf96f523c
git-author:
Martin Lee <martinlee84@web.de>2012-11-10 00:19:17+01:00
git-committer:
Martin Lee <martinlee84@web.de>2012-11-16 13:19:52+01:00
Message:
chg: leave bivariate factorization earlier if univariate image is irreducible
File:
1 edited

Legend:

Unmodified
Added
Removed
  • factory/facBivar.cc

    r6dfc39 rb2c7a2  
    357357              (prod (bufUniFactors) == bufAeval));
    358358
     359    if (bufUniFactors.getFirst().inCoeffDomain())
     360      bufUniFactors.removeFirst();
     361
     362    if (bufUniFactors.length() == 1)
     363    {
     364      factors.append (A);
     365
     366      appendSwapDecompress (factors, conv (contentAxFactors),
     367                            conv (contentAyFactors), swap, swap2, N);
     368
     369      if (isOn (SW_RATIONAL))
     370        normalize (factors);
     371      return factors;
     372    }
     373
    359374    TIMING_START (fac_uni_factorizer);
    360375    if (extension)
     
    367382              (prod (bufUniFactors2) == bufAeval2));
    368383
    369     if (bufUniFactors.getFirst().inCoeffDomain())
    370       bufUniFactors.removeFirst();
    371384    if (bufUniFactors2.getFirst().inCoeffDomain())
    372385      bufUniFactors2.removeFirst();
    373     if (bufUniFactors.length() == 1 || bufUniFactors2.length() == 1)
     386    if (bufUniFactors2.length() == 1)
    374387    {
    375388      factors.append (A);
Note: See TracChangeset for help on using the changeset viewer.