Macaulay2 » Documentation
Packages » Macaulay2Doc » commutative algebra » directProduct
next | previous | forward | backward | up | index | toc

# directProduct -- direct product

## Description

This function calculates the direct product of a list or sequence of compatible objects.

This is a binary method, meaning it is defined for two inputs but can accept more. When three or more arguments are given, the direct product is evaluated from left to right: the direct product of the first two inputs is computed, then the result is used to compute the direct product with the third input, and so on.

## See also

- directProduct(Cone,Cone) -- computes the direct product of polyhedra and cones
- directProduct(Fan,Fan) -- computes the direct product of two fans
- directProduct(Graph,Graph) -- Computes the direct product of two graphs

## Ways to use directProduct:

- `directProduct(List)`
- `directProduct(Sequence)`

## For the programmer

The object directProduct is an associative binary method function.

The source of this document is in /build/macaulay2-88fgJW/macaulay2-1.25.11+ds/M2/Macaulay2/packages/Macaulay2Doc/shared.m2:173:0.