This package is currently under development. If you find any bugs or want to request features, please write me. To install the package, just unpack it in your packages directory (usually ~/gap/pkg
for local installation). To use this package, you need a working installation of the program polymake http://www.math.tu-berlin.de/polymake/. The package has been tested on linux and Mac OS X. But it should be as platform independent as GAP. The only package it depends on is GAPDoc.
The interaction with polymake is restricted to writing files and carrying out simple operations looking like
polymake file KEYWORD1 KEYWORD2 KEYWORD3
on the command line. Multiple using files in one command is not supported as are scripts. Also, there is no interface to any of the polymake clients (like intersction
) which cannot be accessed in this way.
As the polymake package uses the program polymake, it needs to know where this program lives. The communication with polymake is done by writing files for polymake and reading its output (as returned to standard output "the prompt"). Note that the interface does not read any polymake file.
> SetPolymakeDataDirectory ( dir ) | ( method ) |
Sets the directory in which all polymake files are created to dir. The standard place for these files is a temporary directory generated when the package is loaded. This manipulates POLYMAKE_DATA_DIR
(3.2-2).
> SetPolymakeCommand ( command ) | ( method ) |
Sets the name for the polymake program to command. This manipulates POLYMAKE_COMMAND
(3.2-1).
To permanently set the values of POLYMAKE_COMMAND
(3.2-1) and POLYMAKE_DATA_DIR
(3.2-2), add the lines
POLYMAKE_DATA_DIR:=Directory("/home/mypolymakedatadir"); POLYMAKE_COMMAND:=Filename(Directory("/home/mypolymakebindir/"),"polymake"); |
to your .gaprc
file (see Reference: The .gaprc file). Note that these have to be before the LoadPackage("polymake");
line.
generated by GAPDoc2HTML