Changeset d990001 in git


Ignore:
Timestamp:
Sep 26, 2011, 4:43:09 PM (12 years ago)
Author:
Martin Lee <martinlee84@…>
Branches:
(u'spielwiese', '0d6b7fcd9813a1ca1ed4220cfa2b104b97a0a003')
Children:
dfc60c82a16c9b03ecb8def0e0bff88d77446b9e
Parents:
f86531bba4599504e5ff7c611b008080720c66da
git-author:
Martin Lee <martinlee84@web.de>2011-09-26 16:43:09+02:00
git-committer:
Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 16:13:32+01:00
Message:
HAVE_NTL stuff
Location:
factory
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • factory/cf_factor.cc

    rf86531 rd990001  
    805805  else //Q(a)[x1,...,xn]
    806806  {
     807#ifdef HAVE_NTL
    807808    F= ratFactorize (f, alpha);
     809#else
     810    ASSERT( f.isUnivariate(), "multivariate factorization not implemented" );
     811#endif
    808812  }
    809813  if(isOn(SW_USE_NTL_SORT)) F.sort(cmpCF);
  • factory/cf_gcd.cc

    rf86531 rd990001  
    2121#include "cf_map_ext.h"
    2222#include "cf_util.h"
     23#include "gfops.h"
    2324
    2425#ifdef HAVE_NTL
     
    100101    {
    101102      bool extOfExt= false;
     103#ifdef HAVE_NTL
    102104      int d= degree (getMipo (v));
    103105      CFList source, dest;
     
    150152        v= v2;
    151153      }
     154#endif
    152155    }
    153156
  • factory/cf_map_ext.cc

    rf86531 rd990001  
    2424#include "canonicalform.h"
    2525#include "cf_util.h"
     26#include "imm.h"
     27#include "cf_iter.h"
    2628
    2729#ifdef HAVE_NTL
     
    3537#include "cf_map_ext.h"
    3638
    37 #ifdef HAVE_NTL
    38 
    3939/// helper function
    4040int findItem (const CFList& list, const CanonicalForm& item)
     
    6464}
    6565
    66 
     66#ifdef HAVE_NTL
    6767/// \f$ F_{p} (\alpha ) \subset F_{p}(\beta ) \f$ and \f$ \alpha \f$ is a
    6868/// primitive element, returns the image of \f$ \alpha \f$
     
    7878  return convertNTLzzpE2CF (root, beta);
    7979}
     80
     81#endif
    8082
    8183/// the CanonicalForm G is the output of map_up, returns F considered as an
     
    307309}
    308310
     311#ifdef HAVE_NTL
    309312/// determine a primitive element of \f$ F_{p} (\alpha ) \f$,
    310313/// \f$ \beta \f$ is a primitive element of a field which is isomorphic to
     
    348351  return convertNTLzzpE2CF (root, alpha);
    349352}
     353#endif
    350354
    351355CanonicalForm
     
    367371}
    368372
     373#ifdef HAVE_NTL
    369374CanonicalForm
    370375mapPrimElem (const CanonicalForm& primElem, const Variable& alpha,
  • factory/facBivar.cc

    rf86531 rd990001  
    1919#include "timing.h"
    2020
     21#include "cf_algorithm.h"
    2122#include "facFqBivar.h"
    2223#include "facBivar.h"
  • factory/facBivar.h

    rf86531 rd990001  
    1616#define FAC_BIVAR_H
    1717
    18 // #include "config.h"
     18#include <config.h>
    1919
    2020#include "assert.h"
     
    3939/// @ return @a ratBiSqrfFactorize returns a list of monic factors, the first
    4040///         element is the leading coefficient.
     41#ifdef HAVE_NTL
    4142inline
    4243CFList ratBiSqrfFactorize (const CanonicalForm & G, ///< [in] a bivariate poly
     
    146147}
    147148
     149#endif
     150
    148151/// convert a CFFList to a CFList by dropping the multiplicity
    149152CFList conv (const CFFList& L ///< [in] a CFFList
  • factory/facFactorize.cc

    rf86531 rd990001  
    1919#include "timing.h"
    2020
     21#include "cf_algorithm.h"
    2122#include "facFqFactorizeUtil.h"
    2223#include "facFactorize.h"
     
    2930#include "cf_reval.h"
    3031
     32#ifdef HAVE_NTL
    3133CFList evalPoints (const CanonicalForm& F, CFList& eval, Evaluation& E)
    3234{
     
    884886  return factors;
    885887}
     888
     889#endif
  • factory/facFactorize.h

    rf86531 rd990001  
    3333/// @return @a ratSqrfFactorize returns a list of monic factors, the first
    3434///         element is the leading coefficient.
     35#ifdef HAVE_NTL
    3536inline
    3637CFList ratSqrfFactorize (const CanonicalForm & G, ///< [in] a multivariate poly
     
    8990  return result;
    9091}
     92#endif
    9193
    9294#endif
  • factory/facFqFactorize.h

    rf86531 rd990001  
    4040///         element is the leading coefficient.
    4141/// @sa FqSqrfFactorize(), GFSqrfFactorize()
     42#ifdef HAVE_NTL
    4243inline
    4344CFList FpSqrfFactorize (const CanonicalForm & F ///< [in] a multivariate poly
     
    231232}
    232233
     234#endif
     235
    233236/// Naive factor recombination for multivariate factorization over an extension
    234237/// of the initial field. No precomputed is used to exclude combinations.
Note: See TracChangeset for help on using the changeset viewer.