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

# components -- list the components of a direct sum

## Description

components x -- produces a list of the components of an element of a free module.
components M -- the list of components for a module M which was formed as a direct sum, or {M} if M was not formed as a direct sum. Works also for matrices, chain complexes, etc.

## See also

- vector -- make a vector
- directSum -- direct sum of modules or maps
- ++ -- a binary operator, usually used for direct sum

### Menu

- indexComponents -- specify keys for components of a direct sum

## Ways to use components:

- `components(Matrix)`
- `components(Module)`

## For the programmer

The object components is a method function.

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