![]() |
#include <kernel/mod2.h>#include <omalloc/omalloc.h>#include <factory/factory.h>#include <misc/auxiliary.h>#include <misc/options.h>#include <misc/mylimits.h>#include <misc/intvec.h>#include <coeffs/numbers.h>#include <coeffs/coeffs.h>#include <coeffs/rmodulon.h>#include <coeffs/longrat.h>#include <polys/monomials/ring.h>#include <polys/monomials/maps.h>#include <polys/prCopy.h>#include <polys/matpol.h>#include <polys/weight.h>#include <polys/clapsing.h>#include <polys/ext_fields/algext.h>#include <polys/ext_fields/transext.h>#include <kernel/polys.h>#include <kernel/ideals.h>#include <kernel/numeric/mpr_base.h>#include <kernel/numeric/mpr_numeric.h>#include <kernel/GBEngine/syz.h>#include <kernel/GBEngine/kstd1.h>#include <kernel/GBEngine/kutil.h>#include <kernel/combinatorics/stairc.h>#include <kernel/combinatorics/hutil.h>#include <kernel/spectrum/semic.h>#include <kernel/spectrum/splist.h>#include <kernel/spectrum/spectrum.h>#include <kernel/oswrapper/feread.h>#include <Singular/lists.h>#include <Singular/attrib.h>#include <Singular/ipconv.h>#include <Singular/links/silink.h>#include <Singular/ipshell.h>#include <Singular/maps_ip.h>#include <Singular/tok.h>#include <Singular/ipid.h>#include <Singular/subexpr.h>#include <Singular/fevoices.h>#include <math.h>#include <ctype.h>#include <kernel/maps/fast_maps.h>#include <Singular/number2.h>#include <coeffs/bigintmat.h>#include "libparse.h"Go to the source code of this file.
Macros | |
| #define | FAST_MAP |
| #define | BREAK_LINE_LENGTH 80 |
Variables | |
| leftv | iiCurrArgs =NULL |
| idhdl | iiCurrProc =NULL |
| const char * | lastreserved =NULL |
| static BOOLEAN | iiNoKeepRing =TRUE |
| BOOLEAN | iiDebugMarker =TRUE |
| const short | MAX_SHORT = 32767 |
| #define BREAK_LINE_LENGTH 80 |
Definition at line 1024 of file ipshell.cc.
| #define FAST_MAP |
Definition at line 72 of file ipshell.cc.
| enum semicState |
Definition at line 3140 of file ipshell.cc.
| enum spectrumState |
| Enumerator | |
|---|---|
| spectrumOK | |
| spectrumZero | |
| spectrumBadPoly | |
| spectrumNoSingularity | |
| spectrumNotIsolated | |
| spectrumDegenerate | |
| spectrumWrongRing | |
| spectrumNoHC | |
| spectrumUnspecErr | |
Definition at line 3256 of file ipshell.cc.
Definition at line 3066 of file ipshell.cc.
Definition at line 549 of file ipshell.cc.
Definition at line 3102 of file ipshell.cc.
Definition at line 1320 of file ipshell.cc.
Definition at line 6109 of file ipshell.cc.
Definition at line 6067 of file ipshell.cc.
Definition at line 6072 of file ipshell.cc.
Definition at line 6035 of file ipshell.cc.
Definition at line 6077 of file ipshell.cc.
Definition at line 6158 of file ipshell.cc.
Definition at line 6192 of file ipshell.cc.
Definition at line 1215 of file ipshell.cc.
| void iiCheckPack | ( | package & | p | ) |
Definition at line 1629 of file ipshell.cc.
Definition at line 1585 of file ipshell.cc.
check a list of arguemys against a given field of types return TRUE if the types match return FALSE (and, if report) report an error via Werror otherwise
| type_list | < [in] argument list (may be NULL) [in] field of types len, t1,t2,... |
| report | ;in] report error? |
Definition at line 6247 of file ipshell.cc.
|
static |
Definition at line 905 of file ipshell.cc.
| void iiDebug | ( | ) |
Definition at line 1025 of file ipshell.cc.
| int iiDeclCommand | ( | leftv | sy, |
| leftv | name, | ||
| int | lev, | ||
| int | t, | ||
| idhdl * | root, | ||
| BOOLEAN | isring, | ||
| BOOLEAN | init_b | ||
| ) |
Definition at line 1160 of file ipshell.cc.
Definition at line 1202 of file ipshell.cc.
Definition at line 1505 of file ipshell.cc.
Definition at line 1531 of file ipshell.cc.
Definition at line 1605 of file ipshell.cc.
Definition at line 1397 of file ipshell.cc.
Definition at line 1459 of file ipshell.cc.
| int iiIsPrime0 | ( | unsigned | p | ) |
Definition at line 585 of file ipshell.cc.
| void iiMakeResolv | ( | resolvente | r, |
| int | length, | ||
| int | rlen, | ||
| char * | name, | ||
| int | typ0, | ||
| intvec ** | weights | ||
| ) |
Definition at line 816 of file ipshell.cc.
Definition at line 670 of file ipshell.cc.
Definition at line 123 of file ipshell.cc.
Definition at line 1285 of file ipshell.cc.
Definition at line 997 of file ipshell.cc.
Definition at line 6229 of file ipshell.cc.
Definition at line 6131 of file ipshell.cc.
Definition at line 90 of file ipshell.cc.
Definition at line 643 of file ipshell.cc.
Definition at line 633 of file ipshell.cc.
Definition at line 936 of file ipshell.cc.
Definition at line 970 of file ipshell.cc.
Definition at line 949 of file ipshell.cc.
Definition at line 3053 of file ipshell.cc.
Definition at line 5974 of file ipshell.cc.
Definition at line 915 of file ipshell.cc.
Definition at line 1605 of file iparith.cc.
Definition at line 3046 of file ipshell.cc.
Definition at line 6004 of file ipshell.cc.
Definition at line 5996 of file ipshell.cc.
Definition at line 5929 of file ipshell.cc.
| void killlocals | ( | int | v | ) |
Definition at line 382 of file ipshell.cc.
Definition at line 290 of file ipshell.cc.
Definition at line 362 of file ipshell.cc.
Definition at line 325 of file ipshell.cc.
Definition at line 3029 of file ipshell.cc.
Definition at line 3007 of file ipshell.cc.
Definition at line 151 of file ipshell.cc.
| void list_cmd | ( | int | typ, |
| const char * | what, | ||
| const char * | prefix, | ||
| BOOLEAN | iterate, | ||
| BOOLEAN | fullname | ||
| ) |
Definition at line 422 of file ipshell.cc.
| void list_error | ( | semicState | state | ) |
Definition at line 3174 of file ipshell.cc.
| semicState list_is_spectrum | ( | lists | l | ) |
Definition at line 3959 of file ipshell.cc.
| lists listOfRoots | ( | rootArranger * | self, |
| const unsigned int | oprec | ||
| ) |
Definition at line 4774 of file ipshell.cc.
Implementation of the Simplex Algorithm.
For args, see class simplex.
Definition at line 4275 of file ipshell.cc.
Definition at line 2773 of file ipshell.cc.
Definition at line 2795 of file ipshell.cc.
find the (complex) roots an univariate polynomial Determines the roots of an univariate polynomial using Laguerres' root-solver.
Good for polynomials with low and middle degree (<40). Arguments 3: poly arg1 , int arg2 , int arg3 arg2>0: defines precision of fractional part if ground field is Q arg3: number of iterations for approximation of roots (default=2) Returns a list of all (complex) roots of the polynomial arg1
Definition at line 4384 of file ipshell.cc.
returns module representing the multipolynomial resultant matrix Arguments 2: ideal i, int k k=0: use sparse resultant matrix of Gelfand, Kapranov and Zelevinsky k=1: use resultant matrix of Macaulay (k=0 is default)
Definition at line 4361 of file ipshell.cc.
solve a multipolynomial system using the u-resultant Input ideal must be 0-dimensional and (currRing->N) == IDELEMS(ideal).
Resultant method can be MPR_DENSE, which uses Macaulay Resultant (good for dense homogeneous polynoms) or MPR_SPARSE, which uses Sparse Resultant (Gelfand, Kapranov, Zelevinsky). Arguments 4: ideal i, int k, int l, int m k=0: use sparse resultant matrix of Gelfand, Kapranov and Zelevinsky k=1: use resultant matrix of Macaulay (k=0 is default) l>0: defines precision of fractional part if ground field is Q m=0,1,2: number of iterations for approximation of roots (default=2) Returns a list containing the roots of the system.
Definition at line 4617 of file ipshell.cc.
COMPUTE: polynomial p with values given by v at points p1,..,pN derived from p; more precisely: consider p as point in K^n and v as N elements in K, let p1,..,pN be the points in K^n obtained by evaluating all monomials of degree 0,1,...,N at p in lexicographical order, then the procedure computes the polynomial f satisfying f(pi) = v[i] RETURN: polynomial f of degree d.
Definition at line 4516 of file ipshell.cc.
Definition at line 6019 of file ipshell.cc.
Definition at line 2255 of file ipshell.cc.
| void rComposeC | ( | lists | L, |
| ring | R | ||
| ) |
Definition at line 2062 of file ipshell.cc.
| void rComposeRing | ( | lists | L, |
| ring | R | ||
| ) |
Definition at line 2121 of file ipshell.cc.
Definition at line 1869 of file ipshell.cc.
Definition at line 1804 of file ipshell.cc.
Definition at line 1716 of file ipshell.cc.
Definition at line 1840 of file ipshell.cc.
Definition at line 1645 of file ipshell.cc.
Definition at line 1690 of file ipshell.cc.
Definition at line 5304 of file ipshell.cc.
| void rKill | ( | ring | r | ) |
Definition at line 5815 of file ipshell.cc.
| void rKill | ( | idhdl | h | ) |
Definition at line 5884 of file ipshell.cc.
Definition at line 4875 of file ipshell.cc.
|
static |
| void rSetHdl | ( | idhdl | h | ) |
Definition at line 4821 of file ipshell.cc.
Definition at line 5903 of file ipshell.cc.
Definition at line 5260 of file ipshell.cc.
Definition at line 4987 of file ipshell.cc.
| ring rSubring | ( | ring | org_ring, |
| sleftv * | rv | ||
| ) |
Definition at line 5653 of file ipshell.cc.
Definition at line 1060 of file ipshell.cc.
Definition at line 4257 of file ipshell.cc.
Definition at line 4217 of file ipshell.cc.
Definition at line 4134 of file ipshell.cc.
| spectrumState spectrumCompute | ( | poly | h, |
| lists * | L, | ||
| int | fast | ||
| ) |
Definition at line 3516 of file ipshell.cc.
Definition at line 3890 of file ipshell.cc.
Definition at line 3090 of file ipshell.cc.
| void spectrumPrintError | ( | spectrumState | state | ) |
Definition at line 3808 of file ipshell.cc.
Definition at line 3839 of file ipshell.cc.
| spectrumState spectrumStateFromList | ( | spectrumPolyList & | speclist, |
| lists * | L, | ||
| int | fast | ||
| ) |
Definition at line 3275 of file ipshell.cc.
Definition at line 4176 of file ipshell.cc.
Definition at line 2873 of file ipshell.cc.
Definition at line 2850 of file ipshell.cc.
| syStrategy syConvList | ( | lists | li, |
| BOOLEAN | toDel | ||
| ) |
Definition at line 2961 of file ipshell.cc.
| lists syConvRes | ( | syStrategy | syzstr, |
| BOOLEAN | toDel, | ||
| int | add_row_shift | ||
| ) |
Definition at line 2885 of file ipshell.cc.
| syStrategy syForceMin | ( | lists | li | ) |
Definition at line 2991 of file ipshell.cc.
| void test_cmd | ( | int | i | ) |
Definition at line 511 of file ipshell.cc.
| void type_cmd | ( | leftv | v | ) |
Definition at line 248 of file ipshell.cc.
Definition at line 82 of file ipshell.cc.
Definition at line 83 of file ipshell.cc.
Definition at line 1023 of file ipshell.cc.
Definition at line 86 of file ipshell.cc.
Definition at line 84 of file ipshell.cc.
| const short MAX_SHORT = 32767 |
Definition at line 5291 of file ipshell.cc.