Loading...
Searching...
No Matches
cf_switches.cc
Go to the documentation of this file.
/* emacs edit mode for this file is -*- C++ -*- */
/**
*
* @file cf_switches.cc
*
* definition of class CFSwitches.
*
* Used by: cf_globals.cc
*
**/
#include "config.h"
#include "cf_defs.h"
#include "cf_switches.h"
#ifdef HAVE_FLINT
#include <flint/flint.h>
#endif
/** CFSwitches::CFSwitches ()
*
* CFSwitches::CFSwitches() - default constructor.
*
* Turns all switches off.
*
**/
CFSwitches::CFSwitches ()
{
for ( int i = 0; i < CFSwitchesMax; i++ )
switches[i] = false;
// and set the default (recommended) On-values:
#if defined(HAVE_NTL) || defined(HAVE_FLINT)
On(SW_USE_CHINREM_GCD);
#endif
On(SW_USE_NTL_SORT);
#ifdef HAVE_FLINT
On(SW_USE_FL_GCD_P);
On(SW_USE_FL_GCD_0);
#if (__FLINT_RELEASE >= 20700)
On(SW_USE_FL_FAC_P);
#endif
#endif
On(SW_USE_EZGCD);
On(SW_USE_EZGCD_P);
On(SW_USE_QGCD);
On(SW_USE_FL_FAC_0);
//On(SW_USE_FL_FAC_0A);
}
INST_VAR CFSwitches cf_glob_switches;
On
void On(int sw)
switches
Definition canonicalform.cc:1957
i
int i
Definition cfEzgcd.cc:132
cf_defs.h
factory switches.
SW_USE_QGCD
static const int SW_USE_QGCD
set to 1 to use Encarnacion GCD over Q(a)
Definition cf_defs.h:43
SW_USE_CHINREM_GCD
static const int SW_USE_CHINREM_GCD
set to 1 to use modular gcd over Z
Definition cf_defs.h:41
SW_USE_FL_GCD_P
static const int SW_USE_FL_GCD_P
set to 1 to use Flints gcd over F_p
Definition cf_defs.h:47
SW_USE_EZGCD_P
static const int SW_USE_EZGCD_P
set to 1 to use EZGCD over F_q
Definition cf_defs.h:37
SW_USE_NTL_SORT
static const int SW_USE_NTL_SORT
set to 1 to sort factors in a factorization
Definition cf_defs.h:39
SW_USE_FL_FAC_0
static const int SW_USE_FL_FAC_0
set to 1 to prefer flints multivariate factorization over Z/p
Definition cf_defs.h:57
SW_USE_EZGCD
static const int SW_USE_EZGCD
set to 1 to use EZGCD over Z
Definition cf_defs.h:35
SW_USE_FL_GCD_0
static const int SW_USE_FL_GCD_0
set to 1 to use Flints gcd over Q/Z
Definition cf_defs.h:49
SW_USE_FL_FAC_P
static const int SW_USE_FL_FAC_P
set to 1 to prefer flints multivariate factorization over Z/p
Definition cf_defs.h:55
cf_glob_switches
INST_VAR CFSwitches cf_glob_switches
Definition cf_switches.cc:54
cf_switches.h
header to cf_switches.cc.
CFSwitchesMax
const int CFSwitchesMax
const int CFSwitchesMax
Definition cf_switches.h:22
INST_VAR
#define INST_VAR
Definition globaldefs.h:8