Functions and operators

f∘gf \circ g Composition (circle)

Function composition: (f ∘ g)(x) = f(g(x)). Some papers use it for elementwise products.

In ML papers

(f∘g)(x)=f(g(x))(f \circ g)(x) = f(g(x)): apply gg, then ff. A deep network is a composition of layers, fL∘⋯∘f1f_L \circ \dots \circ f_1.

Some papers use ∘\circ between two vectors or matrices for the elementwise (Hadamard) product, the same as ⊙\odot (Hadamard (elementwise) product). If both sides are arrays rather than functions, that is what it means.

How to type it

LaTeXShows
\circ∘\circ

A worked example

f(x)=2x, g(x)=x+1:(f∘g)(3)=f(4)=8f(x) = 2x,\ g(x) = x + 1: \quad (f \circ g)(3) = f(4) = 8

Order matters: (g∘f)(3)=g(6)=7(g \circ f)(3) = g(6) = 7.

Related

a⊙b\mathbf{a} \odot \mathbf{b}Hadamard (elementwise) productf:Rn→Rmf: \mathbb{R}^n \to \mathbb{R}^mArrow (maps to)

Decode this example →