Direct sum / XOR
Usually concatenation or a direct sum of vectors or spaces; in logic and bit operations, exclusive or.
In ML papers
In ML papers most often means concatenation: the vector followed by the vector , so a -vector and a -vector give a -vector. Formally this is the direct sum; papers on graph networks and retrieval use it to join features. The big version, , joins many at once.
For matrices, is the block-diagonal matrix with and on the diagonal and zeros elsewhere. Check where the paper defines it: a few use for elementwise addition instead.
Other meanings, by context
- Bits and logic. Exclusive or (XOR): , . Addition modulo 2.
- Spaces. A direct sum of vector spaces, : every vector splits uniquely into a part in and a part in .
How to type it
| LaTeX | Shows |
|---|---|
\oplus | |
\bigoplus_{i=1}^{n} large, with limits |
A worked example
Read as concatenation, the lengths add: .
Common confusions
- (a plus in a circle) is not (Tensor / Kronecker product, a times in a circle) or (Hadamard (elementwise) product, a dot in a circle).
- Concatenation is also written or ; see Concatenation.