source: git/factory/cf_defs.h

spielwiese
Last change on this file was 18bb79, checked in by Hans Schoenemann <hannes@…>, 2 years ago
remove IntegerDomain from factory.h (for Sage/conflict with Givaro)
  • Property mode set to 100644
File size: 1.9 KB
RevLine 
[493c477]1/* emacs edit mode for this file is -*- C++ -*- */
[2dd068]2
[b52d27]3/**
4 * @file cf_defs.h
5 *
6 * factory switches.
7**/
8
[2dd068]9#ifndef INCL_CF_DEFS_H
[b47a61]10#define INCL_CF_DEFS_H
[2dd068]11
[88534e9]12#include "globaldefs.h"
[e4fe2b]13// #include "config.h"
[c6be2f]14
[2dd068]15
16#define UndefinedDomain 32000
[e73082]17#define PrimePowerDomain 5
[2dd068]18#define GaloisFieldDomain 4
19#define FiniteFieldDomain 3
20#define RationalDomain 2
21#define IntegerDomain 1
22
[18bb79]23/*BEGINPUBLIC*/
24
25#define LEVELBASE -1000000
26#define LEVELTRANS -500000
27#define LEVELQUOT 1000000
28#define LEVELEXPR 1000001
29
[b52d27]30/// set to 1 for computations over Q
[454dc14]31static const int SW_RATIONAL = 0;
[b52d27]32/// set to 1 for symmetric representation over F_q
[454dc14]33static const int SW_SYMMETRIC_FF = 1;
[b52d27]34/// set to 1 to use EZGCD over Z
[454dc14]35static const int SW_USE_EZGCD = 2;
[b52d27]36/// set to 1 to use EZGCD over F_q
[454dc14]37static const int SW_USE_EZGCD_P = 3;
[b52d27]38/// set to 1 to sort factors in a factorization
[454dc14]39static const int SW_USE_NTL_SORT=4;
[b52d27]40/// set to 1 to use modular gcd over Z
[454dc14]41static const int SW_USE_CHINREM_GCD=5;
[b52d27]42/// set to 1 to use Encarnacion GCD over Q(a)
[454dc14]43static const int SW_USE_QGCD=6;
[b52d27]44/// set to 1 to use modular GCD over F_q
[454dc14]45static const int SW_USE_FF_MOD_GCD=7;
[62347d]46/// set to 1 to use Flints gcd over F_p
47static const int SW_USE_FL_GCD_P=8;
48/// set to 1 to use Flints gcd over Q/Z
49static const int SW_USE_FL_GCD_0=9;
[c1b52b]50/// set to 1 to use Factorys Berlekamp alg.
51static const int SW_BERLEKAMP=10;
[2dd068]52
[e73082]53static const int SW_FAC_QUADRATICLIFT=11;
[a872290]54/// set to 1 to prefer flints multivariate factorization over Z/p
55static const int SW_USE_FL_FAC_P=12;
56/// set to 1 to prefer flints multivariate factorization over Z/p
57static const int SW_USE_FL_FAC_0=13;
[f53c82]58/// set to 1 to prefer flints multivariate factorization over Z/p(a)
59static const int SW_USE_FL_FAC_0A=14;
[2dd068]60/*ENDPUBLIC*/
61
[8d25143]62#ifdef HAVE_OMALLOC
63#include "omalloc/omalloc.h"
64#define NEW_ARRAY(T,N)   (T*)omAlloc((N)*sizeof(T))
65#define DELETE_ARRAY(P)  omFree(P)
66#else
67#define NEW_ARRAY(T,N)   new T[N]
[d0dbd7]68#define DELETE_ARRAY(P)  delete[] P
[8d25143]69#endif
[493c477]70#endif /* ! INCL_CF_DEFS_H */
Note: See TracBrowser for help on using the repository browser.