3
#include "polynomial.h"
5
#include "buchberger.h"
8
#include "reversesearch.h"
10
#include "gfanapplication.h"
11
#include "wallideal.h"
13
class PointConfigurationApplication : public GFanApplication
15
IntegerOption dimension1Option;
16
IntegerOption dimension2Option;
18
bool includeInDefaultInstallation()
22
const char *helpText()
24
return "This program produces the point configuration of the product of two standard simplices together with their symmetries.\n";
26
PointConfigurationApplication():
27
dimension1Option("-d1","Number of vertices in the first simplex.",2),
28
dimension2Option("-d2","Number of vertices in the second simplex.",2)
35
return "_pointconfiguration";
40
int d1=dimension1Option.getValue();
41
int d2=dimension2Option.getValue();
44
IntegerMatrix A(d1*d2,d1+d2);
45
IntegerVector p1(d1*d2);
46
IntegerVector p2(d1*d2);
47
IntegerVector p3(d1*d2);
48
IntegerVector p4(d1*d2);
55
p1[b*d1+a]=b*d1+((a==0 || a==1)?1-a:a);
56
p2[b*d1+a]=b*d1+((a+1)%d1);
57
p3[b*d1+a]=((b==0 || b==1)?1-b:b)*d1+a;
58
p4[b*d1+a]=((b+1)%d2)*d1+a;
73
static PointConfigurationApplication theApplication;