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

# tensor -- tensor product

## Description

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

This method is declared as a MethodFunctionBinary, so for two or more argument the product is computed iteratively from the binary tensor products, working from left to right. For two arguments, this is the same as A ** B except that options are allowed.

    i1 : tensor(ZZ^2, ZZ^3, ZZ^4)

           24
    o1 = ZZ

    o1 : ZZ-module, free

## See also

- ** -- a binary operator, usually used for tensor product or Cartesian product

## Ways to use tensor:

- `tensor(List)`
- `tensor(Sequence)`
- tensor(Matrix,Matrix) -- tensor product
- tensor(Matrix,Module) -- tensor product
- `tensor(Module,Matrix)` -- see tensor(Matrix,Module) -- tensor product
- tensor(Module,Module) -- tensor product of modules
- tensor(Monoid,Monoid) -- tensor product of monoids
- `tensor(Ring,Ring)` -- see tensor(Monoid,Monoid) -- tensor product of monoids
- tensor(RingMap,Matrix) -- tensor product via a ring map
- `tensor(RingMap,Module)` -- see tensor(RingMap,Matrix) -- tensor product via a ring map

## For the programmer

The object tensor 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:150:0.