CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.

| Download

GAP 4.8.9 installation with standard packages -- copy to your CoCalc project to get it

Views: 418346
1
#include "loadgap.h"
2
#include "polymake_data.h"
3
4
#include <polymake/Main.h>
5
#include <polymake/Matrix.h>
6
#include <polymake/Rational.h>
7
8
#include <iostream>
9
#include <map>
10
#include <utility>
11
12
using std::cerr;
13
using std::endl;
14
using std::string;
15
using std::map;
16
using std::pair;
17
18
19
// Next lines set some few static Variables
20
// to handle polymake.
21
// All of them will be initialized in
22
// the main method called by gap to
23
// load the package.
24
25
//static polymake::Main *main_polymake_session;
26
//static polymake::perl::Scope *main_polymake_scope;
27
//static map<int, pm::perl::Object*> *polymake_objects;
28
//static int new_polymake_object_number;
29
30
31
// Just declaring functions. Stay tuned, All Methods get the Polymake_Data
32
// struct as first argument.
33
34
Obj REAL_IS_SIMPLICIAL_OBJECT( Polymake_Data*, Obj );
35
36
37
Obj REAL_IS_LATTICE_OBJECT( Polymake_Data*, Obj );
38
39
40
//THIS METHOD CAN ONLY HANDLE LATTICE OBJECTS
41
Obj REAL_IS_NORMAL_OBJECT( Polymake_Data*, Obj );
42
43
44
Obj REAL_IS_SMOOTH_OBJECT( Polymake_Data*, Obj );
45
46
47
Obj REAL_IS_VERYAMPLE_OBJECT( Polymake_Data*, Obj );
48
49
50
Obj REAL_OBJECT_HAS_PROPERTY( Polymake_Data*, Obj, const char* );
51
52
53
Obj REAL_OBJECT_HAS_INT_PROPERTY( Polymake_Data*, Obj, const char* );
54
55
56
Obj REAL_POLYMAKE_DRAW( Polymake_Data*, Obj );
57
58
59
void REAL_SET_PROPERTY_TRUE( Polymake_Data*, Obj, const char* );
60
61
62
Obj REAL_POLYMAKE_SKETCH( Polymake_Data*, Obj );
63
64
Obj REAL_POLYMAKE_SKETCH_WITH_OPTIONS( Polymake_Data*, Obj, Obj, Obj );
65
66
Obj REAL_POLYMAKE_PROPERTIES( Polymake_Data*, Obj );
67
68