Skip to content

Commit

Permalink
new: added print of polymake banner upon loading of polymake.so
Browse files Browse the repository at this point in the history
banner is still hardcoded,
opened a feature request in the polymake forums that enables you to
get your hands on a custom banner, depending on the version of polymake
installed on your system.
  • Loading branch information
Yue Ren committed May 15, 2012
1 parent 47f189c commit b1318f6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions callpolymake/polymake_documentation.cc
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@
void init_polymake_help()
{

std::string polymake_banner =
"Welcome to polymake\nCopyright (c) 1997-2012\nEwgenij Gawrilow, Michael Joswig (TU Darmstadt)\nhttp://www.polymake.org\n";

Print(omStrDup(polymake_banner.c_str()));

std::string isReflexive_help =
"USAGE: isReflexive(p); p polytope\nRETURN: int, 1 if p is reflexive and 0 otherwise\nKEYWORDS: polytopes; polymake; reflexive\nEXAMPLE: example isReflexive shows an example\nexample\n{ \"EXAMPLE: \";\nintmat M[4][4]=1,1,0,0, 1,0,1,0, 1,0,0,1, 1,-1,-1,-1;\npolytope p = polytopeViaVertices(M);\nPolymake::isReflexive(p);\nintmat N[4][4]=1,2,0,0, 1,0,2,0, 1,0,0,2, 1,-2,-2,-2;\nq = polytopeViaVertices(N);\nPolymake::isReflexive(q);\n}\n";

Expand Down

0 comments on commit b1318f6

Please sign in to comment.