Go to the source code of this file.
|
gfan::ZCone | homogeneitySpace (ideal I, ring r) |
|
BOOLEAN | homogeneitySpace (leftv res, leftv args) |
|
gfan::ZCone | lowerHomogeneitySpace (ideal I, ring r) |
|
BOOLEAN | lowerHomogeneitySpace (leftv res, leftv args) |
|
gfan::ZCone | groebnerCone (const ideal I, const ring r, const gfan::ZVector &w) |
|
BOOLEAN | groebnerCone (leftv res, leftv args) |
|
gfan::ZCone | maximalGroebnerCone (const ideal &I, const ring &r) |
|
BOOLEAN | maximalGroebnerCone (leftv res, leftv args) |
|
BOOLEAN | initial (leftv res, leftv args) |
|
void | tropical_setup (SModulFunctions *p) |
|
◆ groebnerCone() [1/2]
Definition at line 156 of file tropical.cc.
157{
160 int* leadexpv = (
int*)
omAlloc((n+1)*
sizeof(int));
161 int* tailexpv = (
int*)
omAlloc((n+1)*
sizeof(int));
162 gfan::ZVector leadexpw = gfan::ZVector(n);
163 gfan::ZVector tailexpw = gfan::ZVector(n);
164
167 {
170 {
175 {
180 }
181 }
182 }
183
185 gfan::ZMatrix
equations = gfan::ZMatrix(0,n);
187 {
188 g = (poly) inI->m[
i];
190 {
195 {
200 }
201 }
202 }
203
208}
BOOLEAN equations(leftv res, leftv args)
BOOLEAN inequalities(leftv res, leftv args)
gfan::ZVector intStar2ZVector(const int d, const int *i)
if(!FE_OPT_NO_SHELL_FLAG)(void) system(sys)
#define omFreeSize(addr, size)
static void p_GetExpV(poly p, int *ev, const ring r)
VAR ring currRing
Widely used global variable which specifies the current polynomial ring for Singular interpreter and ...
static short rVar(const ring r)
#define rVar(r) (r->N)
void id_Delete(ideal *h, ring r)
deletes an ideal/module/matrix
BOOLEAN initial(leftv res, leftv args)
◆ groebnerCone() [2/2]
Definition at line 211 of file tropical.cc.
212{
215 {
218 {
219 try
220 {
221 poly
g = (poly) u->
Data();
224 gfan::ZVector* weightVector;
226 {
231 delete w1;
232 }
233 else
234 {
237 }
240 delete weightVector;
244 }
245 catch (const std::exception& ex)
246 {
247 Werror(
"ERROR: %s",ex.what());
249 }
250 }
251 }
253 {
256 {
257 try
258 {
259 ideal I = (ideal) u->
Data();
260 gfan::ZVector* weightVector;
262 {
267 delete w1;
268 }
269 else
270 {
273 }
276 delete weightVector;
278 }
279 catch (const std::exception& ex)
280 {
281 Werror(
"ERROR: %s",ex.what());
283 }
284 }
285 }
286 WerrorS(
"groebnerCone: unexpected parameters");
288}
bigintmat * iv2bim(intvec *b, const coeffs C)
gfan::ZVector * bigintmatToZVector(const bigintmat &bim)
void inpTranspose()
transpose in place
Class used for (list of) interpreter objects.
const Variable & v
< [in] a sqrfree bivariate poly
void WerrorS(const char *s)
void Werror(const char *fmt,...)
ideal idInit(int idsize, int rank)
initialise an ideal / module
◆ homogeneitySpace() [1/2]
gfan::ZCone homogeneitySpace |
( |
ideal |
I, |
|
|
ring |
r |
|
) |
| |
Definition at line 19 of file tropical.cc.
20{
23 int* leadexpv = (
int*)
omAlloc((n+1)*
sizeof(int));
24 int* tailexpv = (
int*)
omAlloc((n+1)*
sizeof(int));
25 gfan::ZVector leadexpw = gfan::ZVector(n);
26 gfan::ZVector tailexpw = gfan::ZVector(n);
27 gfan::ZMatrix
equations = gfan::ZMatrix(0,n);
29 {
32 {
37 {
42 }
43 }
44 }
48}
◆ homogeneitySpace() [2/2]
Definition at line 51 of file tropical.cc.
52{
55 {
58 {
59 poly
g = (poly) u->
Data();
67 }
68 }
70 {
73 {
74 ideal I = (ideal) u->
Data();
78 }
79 }
80 WerrorS(
"homogeneitySpace: unexpected parameters");
82}
gfan::ZCone homogeneitySpace(ideal I, ring r)
◆ initial()
Definition at line 373 of file tropical.cc.
374{
377 {
380 {
381 poly
p = (poly) u->
Data();
382 gfan::ZVector* weightVector;
384 {
389 delete w1;
390 }
391 else
392 {
395 }
398 delete weightVector;
400 }
401 }
403 {
406 {
407 try
408 {
409 ideal I = (ideal) u->
Data();
410 gfan::ZVector* weightVector;
412 {
417 delete w1;
418 }
419 else
420 {
423 }
426 delete weightVector;
428 }
429 catch (const std::exception& ex)
430 {
431 Werror(
"ERROR: %s",ex.what());
433 }
434 }
435 }
436 WerrorS(
"initial: unexpected parameters");
438}
◆ lowerHomogeneitySpace() [1/2]
gfan::ZCone lowerHomogeneitySpace |
( |
ideal |
I, |
|
|
ring |
r |
|
) |
| |
Definition at line 85 of file tropical.cc.
86{
89 int* leadexpv = (
int*)
omAlloc((n+1)*
sizeof(int));
90 int* tailexpv = (
int*)
omAlloc((n+1)*
sizeof(int));
91 gfan::ZVector leadexpw = gfan::ZVector(n);
92 gfan::ZVector tailexpw = gfan::ZVector(n);
93 gfan::ZMatrix
equations = gfan::ZMatrix(0,n);
95 {
98 {
103 {
108 }
109 }
110 }
112 gfan::ZVector lowerHalfSpaceCondition = gfan::ZVector(n);
113 lowerHalfSpaceCondition[0] = -1;
115
119}
◆ lowerHomogeneitySpace() [2/2]
Definition at line 122 of file tropical.cc.
123{
126 {
129 {
130 poly
g = (poly) u->
Data();
138 }
139 }
141 {
144 {
145 ideal I = (ideal) u->
Data();
149 }
150 }
151 WerrorS(
"lowerHomogeneitySpace: unexpected parameters");
153}
gfan::ZCone lowerHomogeneitySpace(ideal I, ring r)
◆ maximalGroebnerCone() [1/2]
gfan::ZCone maximalGroebnerCone |
( |
const ideal & |
I, |
|
|
const ring & |
r |
|
) |
| |
Definition at line 291 of file tropical.cc.
292{
295 int* leadexpv = (
int*)
omAlloc((n+1)*
sizeof(int));
296 int* tailexpv = (
int*)
omAlloc((n+1)*
sizeof(int));
297 gfan::ZVector leadexpw = gfan::ZVector(n);
298 gfan::ZVector tailexpw = gfan::ZVector(n);
301 {
304 {
309 {
314 }
315 }
316 }
320}
◆ maximalGroebnerCone() [2/2]
Definition at line 323 of file tropical.cc.
324{
327 {
330 {
331 try
332 {
333 poly
g = (poly) u->
Data();
341 }
342 catch (const std::exception& ex)
343 {
344 Werror(
"ERROR: %s",ex.what());
346 }
347 }
348 }
350 {
353 {
354 try
355 {
356 ideal I = (ideal) u->
Data();
360 }
361 catch (const std::exception& ex)
362 {
363 Werror(
"ERROR: %s",ex.what());
365 }
366 }
367 }
368 WerrorS(
"maximalGroebnerCone: unexpected parameters");
370}
gfan::ZCone maximalGroebnerCone(const ideal &I, const ring &r)
◆ tropical_setup()
Definition at line 441 of file tropical.cc.
442{
446
451
452
453}
gfan::ZFan * groebnerComplex(const tropicalStrategy currentStrategy)
gfan::ZFan * groebnerFan(const tropicalStrategy currentStrategy)
BOOLEAN tropicalVariety(leftv res, leftv args)
◆ tropicalVerboseLevel
VAR int tropicalVerboseLevel = 0 |