 |
My Project
debian-1:4.1.2-p1+ds-2
|
#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 59 of file tesths.cc.
69 global_argv0 = argv[0];
74 #if NTL_MAJOR_VERSION>=10
75 #ifdef NTL_THREAD_BOOST
82 int optc, option_index;
88 if (optc ==
'?' || optc == 0)
90 fprintf(stderr,
"Use '%s --help' for a complete list of options\n",
feArgv0);
109 fprintf(stderr,
"Error: Option '--%s' %s\n",
112 fprintf(stderr,
"Error: Option '--%s=%s' %s\n",
114 fprintf(stderr,
"Use '%s --help' for a complete list of options\n",
feArgv0);
117 if (optc ==
'h') exit(0);
120 case FE_OPT_DUMP_VERSIONTUPLE:
137 " A Computer Algebra System for Polynomial Computations / version %s\n"
139 " by: W. Decker, G.-M. Greuel, G. Pfister, H. Schoenemann \\ %s\n"
140 "FB Mathematik der Universitaet, D-67653 Kaiserslautern \\ Debian " DEB_PKG_VERSION
"\n"
143 " shell invocation and links are disallowed");
154 #ifdef SINGULAR_PYOBJECT_SETUP_H
157 #ifdef SI_COUNTEDREF_AUTOLOAD
178 Warn(
"Can not open %s", argv[
i]);
219 char *linkname=(
char*)
feOptValue(FE_OPT_LINK);
220 if((linkname!=
NULL)&&(strcmp(linkname,
"ssi")==0))
228 Print(
"** missing arguments: -b requires --link/--MPhost/--MPport\n");
◆ mmInit()
Definition at line 43 of file tesths.cc.
46 #if defined(OMALLOC_USES_MALLOC)
◆ siInit()
Definition at line 1316 of file misc_ip.cc.
1321 #ifndef __OPTIMIZE__
1390 #ifdef _SC_NPROCESSORS_ONLN
1391 if ((cpu_n=sysconf(_SC_NPROCESSORS_ONLN))>cpus) cpus=cpu_n;
1392 #elif defined(_SC_NPROCESSORS_CONF)
1393 if ((cpu_n=sysconf(_SC_NPROCESSORS_CONF))>cpus) cpus=cpu_n;
EXTERN_VAR BBA_Proc sca_gr_bba
char * fe_fgets_dummy(const char *, char *, int)
const char SHORT_OPTS_STRING[]
void feInitResources(const char *argv0)
only used if HAVE_RINGS is defined
coeffs nrnInitCfByName(char *s, n_coeffType n)
FILE * feFopen(const char *path, const char *mode, char *where, short useWerror, short path_only)
VAR jmp_buf si_start_jmpbuf
#define omInitGetBackTrace()
int iiInitArithmetic()
initialisation of arithmetic structured data
void nRegisterCfByName(cfInitCfByNameProc p, n_coeffType n)
VAR BOOLEAN singular_in_batchmode
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)
EXTERN_VAR BBA_Proc sca_mora
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
#define MAKE_DISTRIBUTION
EXTERN_VAR BBA_Proc gnc_gr_mora
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
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 BOOLEAN iiFloat(leftv res, leftv pnn)
used to represent polys as coeffcients
int status int void * buf
STATIC_VAR n_coeffType n_FlintZn
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)
#define SI_RESTORE_OPT(A, B)
BOOLEAN newFile(char *fname)
only used if HAVE_RINGS is defined
STATIC_VAR n_coeffType n_FlintQ
#define optional_argument
BOOLEAN flintZn_InitChar(coeffs cf, void *infoStruct)
coeffs flintQInitCfByName(char *s, n_coeffType n)
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.
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)
static BOOLEAN ii_FlintQ_init(leftv res, leftv a)
EXTERN_VAR struct fe_option feOptSpec[]
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)
#define omInitRet_2_Info(argv0)
EXTERN_VAR BBA_Proc sca_bba
BOOLEAN iiLibCmd(char *newlib, BOOLEAN autoexport, BOOLEAN tellerror, BOOLEAN force)
INST_VAR sleftv sLastPrinted
void newBuffer(char *s, feBufferTypes t, procinfo *pi, int lineno)
BOOLEAN n2pInitChar(coeffs cf, void *infoStruct)
EXTERN_VAR BBA_Proc gnc_gr_bba
coeffs flintZnInitCfByName(char *s, n_coeffType n)
used for all algebraic extensions, i.e., the top-most extension in an extension tower is algebraic