Real numbers (ℝ) and shapes
The real numbers. ℝⁿˣᵈ is the set of n × d arrays of reals: it states a shape.
In ML papers
is the set of real numbers. With a superscript it gives a shape: is a vector of numbers, a -by- matrix, a three-dimensional tensor. Reading these declarations is the quickest way to check that a formula's products line up.
Other meanings, by context
- Other number sets. natural numbers, integers, complex numbers; the positive reals.
How to type it
| LaTeX | Shows |
|---|---|
\mathbb{R} | |
\mathbb{R}^{n \times d} with a shape |
A worked example
The inner dimensions (3 and 3) must match; the outer ones give the result's shape.
Common confusions
- The superscript is a shape, not a power: is not " to the ".