Macaulay2 » Documentation
Packages » PALPInterface :: palpRun
next | previous | forward | backward | up | index | toc

palpRun -- run a PALP program and return its output

Description

This is the general way in to PALP, for the options that have no wrapper of their own.

i1 : M = transpose matrix {{1,0,0},{-1,0,1},{0,1,0},{0,-1,1},{0,0,1},{0,0,-1}};

              3       6
o1 : Matrix ZZ  <-- ZZ
i2 : print palpRun("poly", "-g", M)
M:7 6 N:29 8 Pic:17 Cor:0
i3 : print palpRun("poly", "-v", {3, 1, 1, 1})
2 3  Vertices of P
   -1    2   -1
   -1   -1    2

The input is written to a file under Macaulay2's temporary directory, which is removed when Macaulay2 exits, and nothing is written to the current directory. Set palpVerbosity to 1 to see the command and the name of that file.

PALP reports some failures on its standard output while still exiting successfully; those are turned into errors here rather than passed along as if they were results.

See also

Ways to use palpRun:

  • palpRun(String,String,List)
  • palpRun(String,String,Matrix)
  • palpRun(String,String,WeightSystem)

For the programmer

The object palpRun is a method function with options.


The source of this document is in /build/reproducible-path/macaulay2-1.26.11+ds/M2/Macaulay2/packages/PALPInterface.m2:1409:0.