Changeset baa2c3a in git


Ignore:
Timestamp:
Jun 18, 2014, 10:51:56 PM (10 years ago)
Author:
Martin Lee <martinlee84@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', 'fc741b6502fd8a97288eaa3eba6e5220f3c3df87')
Children:
f1e3bf524cf7fab23970bad314cf96ff99fd66f3
Parents:
80b8feeb939020d521e3be5049bc41453bdb2e92
git-author:
Martin Lee <martinlee84@web.de>2014-06-18 22:51:56+02:00
git-committer:
Martin Lee <martinlee84@web.de>2014-06-24 12:06:05+02:00
Message:
chg: moved hasFirstAlgVar from cfGcdAlgExt to cf_ops
Location:
factory
Files:
13 edited

Legend:

Unmodified
Added
Removed
  • factory/canonicalform.h

    r80b8fe rbaa2c3a  
    271271
    272272CanonicalForm reduce ( const CanonicalForm& f, const CanonicalForm & M);
     273
     274bool hasFirstAlgVar( const CanonicalForm & f, Variable & a);
    273275//}}}
    274276
  • factory/cfGcdAlgExt.cc

    r80b8fe rbaa2c3a  
    347347}
    348348#endif
    349 
    350 bool hasFirstAlgVar( const CanonicalForm & f, Variable & a )
    351 {
    352   if( f.inBaseDomain() ) // f has NO alg. variable
    353     return false;
    354   if( f.level()<0 ) // f has only alg. vars, so take the first one
    355   {
    356     a = f.mvar();
    357     return true;
    358   }
    359   for(CFIterator i=f; i.hasTerms(); i++)
    360     if( hasFirstAlgVar( i.coeff(), a ))
    361       return true; // 'a' is already set
    362   return false;
    363 }
    364349
    365350CanonicalForm QGCD( const CanonicalForm & F, const CanonicalForm & G );
  • factory/cfGcdAlgExt.h

    r80b8fe rbaa2c3a  
    3030#endif
    3131void tryInvert( const CanonicalForm &, const CanonicalForm &, CanonicalForm &, bool & );
    32 /*BEGINPUBLIC*/
    33 bool hasFirstAlgVar( const CanonicalForm &, Variable & );
    34 /*ENDPUBLIC*/
    3532
    3633/// modular gcd over F_p[x]/(M) for not necessarily irreducible M.
  • factory/cfNewtonPolygon.cc

    r80b8fe rbaa2c3a  
    2929#include "cfNewtonPolygon.h"
    3030#include "templates/ftmpl_functions.h"
    31 #include "cfGcdAlgExt.h"
    3231
    3332static
  • factory/cf_factor.cc

    r80b8fe rbaa2c3a  
    2727#include "facFqSquarefree.h"
    2828#include "cf_map.h"
    29 #include "cfGcdAlgExt.h"
    3029#include "facAlgExt.h"
    3130#include "facFactorize.h"
  • factory/cf_gcd_smallp.cc

    r80b8fe rbaa2c3a  
    2525
    2626#include "canonicalform.h"
    27 #include "cfGcdAlgExt.h"
    2827#include "cf_map.h"
    2928#include "cf_util.h"
  • factory/cf_ops.cc

    r80b8fe rbaa2c3a  
    661661  return result;
    662662}
     663
     664/** check if poly f contains an algebraic variable a **/
     665bool hasFirstAlgVar( const CanonicalForm & f, Variable & a )
     666{
     667  if( f.inBaseDomain() ) // f has NO alg. variable
     668    return false;
     669  if( f.level()<0 ) // f has only alg. vars, so take the first one
     670  {
     671    a = f.mvar();
     672    return true;
     673  }
     674  for(CFIterator i=f; i.hasTerms(); i++)
     675    if( hasFirstAlgVar( i.coeff(), a ))
     676      return true; // 'a' is already set
     677  return false;
     678}
  • factory/facAlgFunc.cc

    r80b8fe rbaa2c3a  
    2626#include "debug.h"
    2727
    28 #include "cfGcdAlgExt.h"
    2928#include "cf_generator.h"
    3029#include "cf_iter.h"
  • factory/facBivar.cc

    r80b8fe rbaa2c3a  
    2525#include "facMul.h"
    2626#include "cf_primes.h"
    27 #include "cfGcdAlgExt.h"
    2827
    2928#ifdef HAVE_NTL
  • factory/facFqBivar.cc

    r80b8fe rbaa2c3a  
    3636#include "facFqBivar.h"
    3737#include "cfNewtonPolygon.h"
    38 #include "cfGcdAlgExt.h"
    3938
    4039#ifdef HAVE_NTL
  • factory/facFqBivarUtil.cc

    r80b8fe rbaa2c3a  
    3030#include "facHensel.h"
    3131#include "facMul.h"
    32 #include "cfGcdAlgExt.h"
    3332
    3433#ifdef HAVE_FLINT
  • factory/facMul.cc

    r80b8fe rbaa2c3a  
    1919#include "canonicalform.h"
    2020#include "facMul.h"
    21 #include "cfGcdAlgExt.h"
    2221#include "cf_util.h"
    2322#include "templates/ftmpl_functions.h"
  • factory/factory.template

    r80b8fe rbaa2c3a  
    113113
    114114/*MAKEHEADER PUBLIC ONLY*/
    115 #include "cfGcdAlgExt.h"
    116 
    117 /*MAKEHEADER PUBLIC ONLY*/
    118115#include "facAlgFunc.h"
    119116
Note: See TracChangeset for help on using the changeset viewer.