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
// The usual Header.
2
#include "loadgap.h"
3
#include "polymake_data.h"
4
5
#include <polymake/Main.h>
6
#include <polymake/Matrix.h>
7
#include <polymake/Rational.h>
8
//#include <polymake/common/lattice_tools.h>
9
10
#include <iostream>
11
#include <map>
12
#include <utility>
13
14
using std::cerr;
15
using std::endl;
16
using std::string;
17
using std::map;
18
using std::pair;
19
20
// Method creates cones by raylists
21
Obj REAL_CREATE_CONE_BY_RAYS( Polymake_Data* , Obj );
22
23
Obj REAL_CREATE_CONE_BY_RAYS_UNSAVE( Polymake_Data* , Obj );
24
25
// This method might need some words
26
// Inequalities are given by lists of integers.
27
// [a,b,..] means the cone contains all points
28
// which are of the form ax+by+...>=0.
29
// The lists so are raygenerators of the dual cone.
30
Obj REAL_CREATE_CONE_BY_INEQUALITIES( Polymake_Data*, Obj );
31
32
Obj REAL_CREATE_CONE_BY_EQUALITIES_AND_INEQUALITIES( Polymake_Data*, Obj, Obj );
33
34
// Method creates the dual cone of a cone
35
Obj REAL_CREATE_DUAL_CONE_OF_CONE( Polymake_Data*, Obj );
36
37
Obj REAL_GENERATING_RAYS_OF_CONE( Polymake_Data*, Obj );
38
39
Obj REAL_HILBERT_BASIS_OF_CONE( Polymake_Data*, Obj );
40
41
Obj REAL_RAYS_IN_FACETS( Polymake_Data*, Obj );
42
43
Obj REAL_DEFINING_INEQUALITIES_OF_CONE( Polymake_Data*, Obj );
44
45
Obj REAL_LINEALITY_SPACE_OF_CONE( Polymake_Data* , Obj );
46
47
Obj REAL_EQUALITIES_OF_CONE( Polymake_Data*, Obj);
48
49
Obj REAL_INTERSECTION_OF_CONES( Polymake_Data*, Obj, Obj );
50
51