My Project
cf_switches.cc
Go to the documentation of this file.
1 /* emacs edit mode for this file is -*- C++ -*- */
2 
3 /**
4  *
5  * @file cf_switches.cc
6  *
7  * definition of class CFSwitches.
8  *
9  * Used by: cf_globals.cc
10  *
11 **/
12 
13 
14 #include "config.h"
15 
16 
17 #include "cf_defs.h"
18 #include "cf_switches.h"
19 
20 /** CFSwitches::CFSwitches ()
21  *
22  * CFSwitches::CFSwitches() - default constructor.
23  *
24  * Turns all switches off.
25  *
26 **/
28 {
29  for ( int i = 0; i < CFSwitchesMax; i++ )
30  switches[i] = false;
31 // and set the default (recommended) On-values:
32 #if defined(HAVE_NTL) || defined(HAVE_FLINT)
34 #endif
36 #ifdef HAVE_FLINT
39 #endif
42  On(SW_USE_QGCD);
44  //On(SW_USE_FL_FAC_0A);
45 }
46 
48 
int i
Definition: cfEzgcd.cc:132
factory switches.
static const int SW_USE_QGCD
set to 1 to use Encarnacion GCD over Q(a)
Definition: cf_defs.h:42
static const int SW_USE_CHINREM_GCD
set to 1 to use modular gcd over Z
Definition: cf_defs.h:40
static const int SW_USE_FL_GCD_P
set to 1 to use Flints gcd over F_p
Definition: cf_defs.h:46
static const int SW_USE_EZGCD_P
set to 1 to use EZGCD over F_q
Definition: cf_defs.h:36
static const int SW_USE_NTL_SORT
set to 1 to sort factors in a factorization
Definition: cf_defs.h:38
static const int SW_USE_FL_FAC_0
set to 1 to prefer flints multivariate factorization over Z/p
Definition: cf_defs.h:56
static const int SW_USE_EZGCD
set to 1 to use EZGCD over Z
Definition: cf_defs.h:34
static const int SW_USE_FL_GCD_0
set to 1 to use Flints gcd over Q/Z
Definition: cf_defs.h:48
INST_VAR CFSwitches cf_glob_switches
Definition: cf_switches.cc:47
header to cf_switches.cc.
const int CFSwitchesMax
const int CFSwitchesMax
Definition: cf_switches.h:22
class CFSwitches
Definition: cf_switches.h:40
void On(int s)
switch 's' on
Definition: cf_switches.h:51
CFSwitches()
CFSwitches::CFSwitches ()
Definition: cf_switches.cc:27
bool switches[CFSwitchesMax]
Definition: cf_switches.h:42
#define INST_VAR
Definition: globaldefs.h:8