Ignore:
Timestamp:
Mar 12, 2014, 2:03:17 PM (10 years ago)
Author:
Martin Lee <martinlee84@…>
Branches:
(u'spielwiese', 'a719bcf0b8dbc648b128303a49777a094b57592c')
Children:
574650d154909eac6bd00ddec8f7f5ff0828b7a7
Parents:
9565355ff47c1ec84ca7a3ba989ea81f752de054
git-author:
Martin Lee <martinlee84@web.de>2014-03-12 14:03:17+01:00
git-committer:
Hans Schoenemann <hannes@mathematik.uni-kl.de>2014-03-17 18:31:54+01:00
Message:
chg: use factory's factorization
File:
1 edited

Legend:

Unmodified
Added
Removed
  • factory/libfac/charset/alg_factor.cc

    r956535 r115a9a  
    800800  {
    801801    // factorize R over alg.extension with X
    802 //CERR << "alg: "<< X << " mipo=" << getMipo(X,Variable('X')) <<"\n";
    803     if (R.isUnivariate())
    804     {
    805       DEBOUTLN(CERR, "alg_factor: factorize( ", R);
    806       Factorlist =  factorize( R, X );
    807     }
    808     else
    809     {
    810       #if 1
    811       Variable XX;
    812       CanonicalForm mipo=getMipo(X,XX);
    813       CFList as(mipo);
    814       DEBOUTLN(CERR, "alg_factor: newfactoras( ", R);
    815       int success=1;
    816       Factorlist = newfactoras(R, as , success);
    817       #else
    818       // factor R over k
    819       DEBOUTLN(CERR, "alg_factor: Factorize( ", R);
    820       Factorlist = Factorize(R);
    821       #endif
    822     }
     802    //CERR << "alg: "<< X << " mipo=" << getMipo(X,Variable('X')) <<"\n";
     803    DEBOUTLN(CERR, "alg_factor: factorize( ", R);
     804    Factorlist =  factorize( R, X );
    823805  }
    824806  else
     
    826808    // factor R over k
    827809    DEBOUTLN(CERR, "alg_factor: Factorize( ", R);
    828     Factorlist = Factorize(R);
    829   }
     810    Factorlist = factorize(R);
     811  }
     812
    830813  On(SW_RATIONAL);
    831814  DEBOUTLN(CERR, "alg_factor: Factorize(R)= ", Factorlist);
Note: See TracChangeset for help on using the changeset viewer.