13

I'm looking for a math symbol to represent the concatenation of two vectors: if x = (x1, x2) and y = (y1, y2) then x ? y = (x1, x2, y1, y2).

I'm not very much at home in vector calculus, so I don't know if there's a standard symbol for this. If not, then I remember from formal language theory that there's a round caret-like symbol for concatenating two strings, which would be fine for my purposes. I can't find it, though; the sources I've found online all recommend using juxtaposition for concatenation, but I'm afraid this would be mistaken for the dot product.

I'm using elsarticle.cls, so amsmath and amssymb are both available.

Fred Foo
  • 233

4 Answers4

11

Personally, I would use \oplus for this. I would think of it as a direct sum of two vectors (as a member of the direct sum of two vector spaces).

  • Plus you can use \bigoplus to easily represent the concatenation of multiple vectors! – Vivek Aug 04 '21 at 13:20
  • This notation doesn't really work that well for tensors, since they must be concatenated along only one axis (which is not specified by this notation). – Mateen Ulhaq Dec 05 '23 at 02:41
6

You can use two pluses joined together, which is rather intuitive

\documentclass[a4paper]{article}
\newcommand{\concat}{\ensuremath{+\!\!\!\!+\,}}
\begin{document}
$a \concat b$
\end{document}

Another symbol is ||

 \[ p\|q=p b^{l(q)}+q \]

The \| command gives a double vertical bar.

Werner
  • 603,163
yannisl
  • 117,160
5

Since a vector in R^2 is written (1, 2), it would make sense to concatenate two vectors a and b as (a,b).

Ben
  • 2,609
1

Computer science often uses the ⧺ (U+29FA) symbol. (String concatenation is ++ in the Haskell programming language, to represent this.)

This is \doubleplus in unicode-math and the legacy packages stix and stix2. Or, in the modern toolchain, you can use the Unicode symbol in your source.

Davislor
  • 44,045