Changeset 978ce3 in git for factory


Ignore:
Timestamp:
May 14, 2012, 5:59:42 PM (12 years ago)
Author:
Martin Lee <martinlee84@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
afb6a640a48bf260401660cd1ef52edcee526c38
Parents:
9aac3e40e249db0a2411b4c4f36cdc9a5d791080
git-author:
Martin Lee <martinlee84@web.de>2012-05-14 17:59:42+02:00
git-committer:
Martin Lee <martinlee84@web.de>2012-05-30 17:39:25+02:00
Message:
fix: multiple definitions with --enable-timing
Location:
factory
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • factory/facBivar.cc

    r9aac3e r978ce3  
    2727
    2828#ifdef HAVE_NTL
    29 TIMING_DEFINE_PRINT(uni_factorize)
    30 TIMING_DEFINE_PRINT(hensel_lift12)
     29TIMING_DEFINE_PRINT(fac_uni_factorizer)
     30TIMING_DEFINE_PRINT(fac_bi_hensel_lift)
     31TIMING_DEFINE_PRINT(fac_bi_factor_recombination)
    3132
    3233// bound on coeffs of f (cf. Musser: Multivariate Polynomial Factorization,
     
    705706  bool earlySuccess= false;
    706707  CFList earlyFactors;
    707   TIMING_START (fac_hensel_lift);
     708  TIMING_START (fac_bi_hensel_lift);
    708709  uniFactors= henselLiftAndEarly
    709710              (A, earlySuccess, earlyFactors, degs, liftBound,
    710711               uniFactors, dummy, evaluation, b);
    711   TIMING_END_AND_PRINT (fac_hensel_lift, "time for hensel lifting: ");
     712  TIMING_END_AND_PRINT (fac_bi_hensel_lift, "time for hensel lifting: ");
    712713  DEBOUTLN (cerr, "lifted factors= " << uniFactors);
    713714
  • factory/facFqBivar.cc

    r9aac3e r978ce3  
    4545#endif
    4646
    47 TIMING_DEFINE_PRINT(fac_uni_factorizer)
    48 TIMING_DEFINE_PRINT(fac_hensel_lift12)
     47TIMING_DEFINE_PRINT(fac_fq_uni_factorizer)
     48TIMING_DEFINE_PRINT(fac_fq_bi_hensel_lift)
     49TIMING_DEFINE_PRINT(fac_fq_bi_factor_recombination)
    4950
    5051CanonicalForm prodMod0 (const CFList& L, const CanonicalForm& M, const modpk& b)
     
    59125913
    59135914    // univariate factorization
    5914     TIMING_START (fac_uni_factorizer);
     5915    TIMING_START (fac_fq_uni_factorizer);
    59155916    bufUniFactors= uniFactorizer (bufAeval, alpha, GF);
    5916     TIMING_END_AND_PRINT (fac_uni_factorizer,
     5917    TIMING_END_AND_PRINT (fac_fq_uni_factorizer,
    59175918                          "time for univariate factorization: ");
    59185919    DEBOUTLN (cerr, "Lc (bufAeval)*prod (bufUniFactors)== bufAeval " <<
     
    59215922    if (!derivXZero && !fail2)
    59225923    {
    5923       TIMING_START (fac_uni_factorizer);
     5924      TIMING_START (fac_fq_uni_factorizer);
    59245925      bufUniFactors2= uniFactorizer (bufAeval2, alpha, GF);
    5925       TIMING_END_AND_PRINT (fac_uni_factorizer,
     5926      TIMING_END_AND_PRINT (fac_fq_uni_factorizer,
    59265927                            "time for univariate factorization in y: ");
    59275928      DEBOUTLN (cerr, "Lc (bufAeval2)*prod (bufUniFactors2)== bufAeval2 " <<
     
    60846085    bool earlySuccess= false;
    60856086    CFList earlyFactors;
    6086     TIMING_START (fac_hensel_lift12);
     6087    TIMING_START (fac_fq_bi_hensel_lift);
    60876088    uniFactors= henselLiftAndEarly
    60886089               (A, earlySuccess, earlyFactors, degs, liftBound,
    60896090                uniFactors, info, evaluation);
    6090     TIMING_END_AND_PRINT (fac_hensel_lift12, "time for hensel lifting: ");
     6091    TIMING_END_AND_PRINT (fac_fq_bi_hensel_lift, "time for hensel lifting: ");
    60916092    DEBOUTLN (cerr, "lifted factors= " << uniFactors);
    60926093
     
    61076108  else if (degree (A) > 4 && beta.level() == 1 && (2*minBound)/degMipo < 32)
    61086109  {
    6109     TIMING_START (fac_hensel_lift12);
     6110    TIMING_START (fac_fq_bi_hensel_lift);
    61106111    if (extension)
    61116112    {
     
    61256126      factors= Union (lll, factors);
    61266127    }
    6127     TIMING_END_AND_PRINT (fac_hensel_lift12, "time for hensel lifting: ");
     6128    TIMING_END_AND_PRINT (fac_fq_bi_hensel_lift, "time for hensel lifting: ");
    61286129    DEBOUTLN (cerr, "lifted factors= " << uniFactors);
    61296130  }
     
    61326133    bool earlySuccess= false;
    61336134    CFList earlyFactors;
    6134     TIMING_START (fac_hensel_lift12);
     6135    TIMING_START (fac_fq_bi_hensel_lift);
    61356136    uniFactors= henselLiftAndEarly
    61366137               (A, earlySuccess, earlyFactors, degs, liftBound,
    61376138                uniFactors, info, evaluation);
    6138     TIMING_END_AND_PRINT (fac_hensel_lift12, "time for hensel lifting: ");
     6139    TIMING_END_AND_PRINT (fac_fq_bi_hensel_lift, "time for hensel lifting: ");
    61396140    DEBOUTLN (cerr, "lifted factors= " << uniFactors);
    61406141
  • factory/facFqFactorize.cc

    r9aac3e r978ce3  
    3737#include "NTLconvert.h"
    3838
    39 TIMING_DEFINE_PRINT(fac_bi_factorizer)
    40 TIMING_DEFINE_PRINT(fac_hensel_lift)
    41 TIMING_DEFINE_PRINT(fac_factor_recombination)
     39TIMING_DEFINE_PRINT(fac_fq_bi_factorizer)
     40TIMING_DEFINE_PRINT(fac_fq_hensel_lift)
     41TIMING_DEFINE_PRINT(fac_fq_factor_recombination)
    4242
    4343static inline
     
    24122412    bufLift= degree (A, y) + 1 + degree (LC(A, x), y);
    24132413
    2414     TIMING_START (fac_bi_factorizer);
     2414    TIMING_START (fac_fq_bi_factorizer);
    24152415    if (!GF && alpha.level() == 1)
    24162416      bufBiFactors= FpBiSqrfFactorize (bufAeval.getFirst());
     
    24192419    else
    24202420      bufBiFactors= FqBiSqrfFactorize (bufAeval.getFirst(), alpha);
    2421     TIMING_END_AND_PRINT (fac_bi_factorizer,
     2421    TIMING_END_AND_PRINT (fac_fq_bi_factorizer,
    24222422                          "time for bivariate factorization: ");
    24232423    bufBiFactors.removeFirst();
     
    27162716    bool earlySuccess;
    27172717    CFList earlyFactors, liftedFactors;
    2718     TIMING_START (fac_hensel_lift);
     2718    TIMING_START (fac_fq_hensel_lift);
    27192719    liftedFactors= henselLiftAndEarly
    27202720                   (A, MOD, liftBounds, earlySuccess, earlyFactors,
    27212721                    Aeval, biFactors, evaluation, info);
    2722     TIMING_END_AND_PRINT (fac_hensel_lift, "time for hensel lifting: ");
     2722    TIMING_END_AND_PRINT (fac_fq_hensel_lift, "time for hensel lifting: ");
    27232723
    27242724    if (!extension)
    27252725    {
    2726       TIMING_START (fac_factor_recombination);
     2726      TIMING_START (fac_fq_factor_recombination);
    27272727      factors= factorRecombination (A, liftedFactors, MOD);
    2728       TIMING_END_AND_PRINT (fac_factor_recombination,
     2728      TIMING_END_AND_PRINT (fac_fq_factor_recombination,
    27292729                            "time for factor recombination: ");
    27302730    }
    27312731    else
    27322732    {
    2733       TIMING_START (fac_factor_recombination);
     2733      TIMING_START (fac_fq_factor_recombination);
    27342734      factors= extFactorRecombination (liftedFactors, A, MOD, info, evaluation);
    2735       TIMING_END_AND_PRINT (fac_factor_recombination,
     2735      TIMING_END_AND_PRINT (fac_fq_factor_recombination,
    27362736                            "time for factor recombination: ");
    27372737    }
Note: See TracChangeset for help on using the changeset viewer.