next | previous | forward | backward | up | top | index | toc | Macaulay2 web site
Polyhedra :: Polyhedron * Polyhedron

Polyhedron * Polyhedron -- computes the direct product of two polyhedra

Synopsis

Description

Computes the direct product of P1 and P2.This is the polyhedron {(x,y) | x in P1, y in P2}, in the direct product of the ambient spaces.

See also directProduct.

i1 : P1 = convexHull matrix {{1,-1,0,0},{0,0,1,-1}}

o1 = P1

o1 : Polyhedron
i2 : P2 = convexHull matrix {{1},{-1}}

o2 = P2

o2 : Polyhedron
i3 : P = P1 * P2

o3 = P

o3 : Polyhedron
i4 : vertices P

o4 = | -1 1  0  0  |
     | 0  0  -1 1  |
     | 1  1  1  1  |
     | -1 -1 -1 -1 |

              4        4
o4 : Matrix QQ  <--- QQ