Vectors and matrices

Rn×d\mathbb{R}^{n \times d} Times (cross)

Usually the “by” in a shape (n × d); also plain multiplication or a cross product.

In ML papers

In ML papers ×\times most often appears in shapes: Rn×d\mathbb{R}^{n \times d} is nn rows by dd columns, B×T×dB \times T \times d a batch of sequences. Between numbers it is multiplication. Between two 3-vectors it is the cross product, rare in ML. Between sets, A×BA \times B is the set of all pairs.

How to type it

LaTeXShows
\times×\times

A worked example

X∈R32×512X \in \mathbb{R}^{32 \times 512}

32 rows (say, examples in a batch), each with 512 features: 16,38416{,}384 numbers.

Equations that use it

Related

W∈Rd×kW \in \mathbb{R}^{d \times k}Real numbers (ℝ) and shapesW∈Rm×n\mathbf{W} \in \mathbb{R}^{m \times n}Bold uppercase (matrix)a⊗b\mathbf{a} \otimes \mathbf{b}Tensor / Kronecker producta⋅b\mathbf{a} \cdot \mathbf{b}Centre dot

Decode this example →