 |
My Project
debian-1:4.1.1-p2+ds-4build1
|
#include "kernel/mod2.h"
#include "omalloc/omalloc.h"
#include "misc/options.h"
#include "factory/factory.h"
#include "kernel/oswrapper/feread.h"
#include "Singular/fevoices.h"
#include "kernel/oswrapper/timer.h"
#include "ipshell.h"
#include "cntrlc.h"
#include "links/silink.h"
#include "ipid.h"
#include "sdb.h"
#include "feOpt.h"
#include "distrib.h"
#include "mmalloc.h"
#include "tok.h"
#include "fegetopt.h"
#include "Singular/countedref.h"
#include "Singular/pyobject_setup.h"
#include <unistd.h>
#include <NTL/config.h>
Go to the source code of this file.
◆ main()
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 61 of file tesths.cc.
73 #if NTL_MAJOR_VERSION>=10
74 #ifdef NTL_THREAD_BOOST
81 int optc, option_index;
87 if (optc ==
'?' || optc == 0)
89 fprintf(stderr,
"Use '%s --help' for a complete list of options\n",
feArgv0);
108 fprintf(stderr,
"Error: Option '--%s' %s\n",
111 fprintf(stderr,
"Error: Option '--%s=%s' %s\n",
113 fprintf(stderr,
"Use '%s --help' for a complete list of options\n",
feArgv0);
116 if (optc ==
'h') exit(0);
119 case FE_OPT_DUMP_VERSIONTUPLE:
132 #ifndef MAKE_DISTRIBUTION
136 " A Computer Algebra System for Polynomial Computations / version %s\n"
138 " by: W. Decker, G.-M. Greuel, G. Pfister, H. Schoenemann \\ %s\n"
139 "FB Mathematik der Universitaet, D-67653 Kaiserslautern \\ Debian " DEB_PKG_VERSION
"\n"
142 " shell invocation and links are disallowed");
153 #ifdef SINGULAR_PYOBJECT_SETUP_H
156 #ifdef SI_COUNTEDREF_AUTOLOAD
177 Warn(
"Can not open %s", argv[
i]);
218 char *linkname=(
char*)
feOptValue(FE_OPT_LINK);
219 if((linkname!=
NULL)&&(strcmp(linkname,
"ssi")==0))
227 Print(
"** missing arguments: -b requires --link/--MPhost/--MPport\n");
◆ mmInit()
Definition at line 45 of file tesths.cc.
48 #if defined(OMALLOC_USES_MALLOC)
◆ siInit()
Definition at line 1310 of file misc_ip.cc.
1322 #ifndef __OPTIMIZE__
1391 #ifdef _SC_NPROCESSORS_ONLN
1392 if ((cpu_n=sysconf(_SC_NPROCESSORS_ONLN))>cpus) cpus=cpu_n;
1393 #elif defined(_SC_NPROCESSORS_CONF)
1394 if ((cpu_n=sysconf(_SC_NPROCESSORS_CONF))>cpus) cpus=cpu_n;
char * fe_fgets_dummy(const char *, char *, int)
const char SHORT_OPTS_STRING[]
void feInitResources(const char *argv0)
FILE * feFopen(const char *path, const char *mode, char *where, short useWerror, short path_only)
#define omInitGetBackTrace()
int iiInitArithmetic()
initialisation of arithmetic structured data
BOOLEAN naInitChar(coeffs cf, void *infoStruct)
Initialize the coeffs object.
idhdl enterid(const char *s, int lev, int t, idhdl *root, BOOLEAN init, BOOLEAN search)
feOptIndex feGetOptIndex(const char *name)
void omFreeSizeFunc(void *addr, size_t size)
int ssiBatch(const char *host, const char *port)
void pyobject_setup()
initialize blackbox support for pyobject; functionilty os autoloaded on demand
void * omMallocFunc(size_t size)
#define LONG_OPTION_RETURN
const char * feSetOptValue(feOptIndex opt, char *optarg)
coeffs nInitChar(n_coeffType t, void *parameter)
one-time initialisations for new coeffs in case of an error return NULL
char *(* fe_fgets_stdin)(const char *pr, char *s, int size)
Class used for (list of) interpreter objects.
BOOLEAN flintQ_InitChar(coeffs cf, void *infoStruct)
void factoryseed(int s)
random seed initializer
BOOLEAN singular_in_batchmode
static const int SW_USE_EZGCD
set to 1 to use EZGCD over Z
int iiAddCproc(const char *libname, const char *procname, BOOLEAN pstatic, BOOLEAN(*func)(leftv res, leftv v))
static BOOLEAN iiCrossProd(leftv res, leftv args)
n_coeffType nRegister(n_coeffType n, cfInitCharProc p)
ideal k_sca_gr_bba(const ideal F, const ideal Q, const intvec *, const intvec *, kStrategy strat, const ring _currRing)
Modified Plural's Buchberger's algorithmus.
static const int SW_USE_NTL_SORT
set to 1 to sort factors in a factorization
static n_coeffType n_FlintZn
static BOOLEAN iiFloat(leftv res, leftv pnn)
used to represent polys as coeffcients
int status int void * buf
void omSingOutOfMemoryFunc()
void * malloc(size_t size)
poly k_NF(ideal F, ideal Q, poly p, int syzComp, int lazyReduce, const ring _currRing)
NOTE: this is just a wrapper which sets currRing for the actual kNF call.
ideal k_sca_bba(const ideal F, const ideal Q, const intvec *, const intvec *, kStrategy strat, const ring _currRing)
Modified modern Sinuglar Buchberger's algorithm.
int fe_getopt_long(int argc, char *const *argv, const char *options, const struct fe_option *long_options, int *opt_index)
void * omReallocSizeFunc(void *old_addr, size_t old_size, size_t new_size)
static BOOLEAN ii_FlintZn_init(leftv res, leftv a)
void omInitRet_2_Info(const char *argv0)
#define SI_RESTORE_OPT(A, B)
BOOLEAN newFile(char *fname)
only used if HAVE_RINGS is defined
#define optional_argument
static const int SW_USE_CHINREM_GCD
set to 1 to use modular gcd over Z
BOOLEAN flintZn_InitChar(coeffs cf, void *infoStruct)
void init_signals()
init signal handlers and error handling for libraries: NTL, factory
Voice * feInitStdin(Voice *pp)
used for all transcendental extensions, i.e., the top-most extension in an extension tower is transce...
BOOLEAN ntInitChar(coeffs cf, void *infoStruct)
Initialize the coeffs object.
struct fe_option feOptSpec[]
static const int SW_USE_EZGCD_P
set to 1 to use EZGCD over F_q
ideal k_sca_mora(const ideal F, const ideal Q, const intvec *, const intvec *, kStrategy strat, const ring _currRing)
Modified modern Sinuglar Mora's algorithm.
char name(const Variable &v)
ideal k_gnc_gr_mora(const ideal F, const ideal Q, const intvec *, const intvec *, kStrategy strat, const ring _currRing)
ideal k_gnc_gr_bba(const ideal F, const ideal Q, const intvec *, const intvec *, kStrategy strat, const ring _currRing)
#define SI_SAVE_OPT(A, B)
static void * feOptValue(feOptIndex opt)
static const int SW_USE_QGCD
set to 1 to use Encarnacion GCD over Q(a)
BOOLEAN iiLibCmd(char *newlib, BOOLEAN autoexport, BOOLEAN tellerror, BOOLEAN force)
void newBuffer(char *s, feBufferTypes t, procinfo *pi, int lineno)
BOOLEAN n2pInitChar(coeffs cf, void *infoStruct)
used for all algebraic extensions, i.e., the top-most extension in an extension tower is algebraic