Maths for ML / Notation

A⊤\mathbf{A}^{\top}

transpose

Linear algebraBeginner

Say it “A transpose”

Flip a matrix over its diagonal: rows become columns. Turns a column vector into a row vector.

Example

[1234]⊤=[1324]\begin{bmatrix}1&2\\3&4\end{bmatrix}^{\top}=\begin{bmatrix}1&3\\2&4\end{bmatrix}

In code

A.T
A.T  # or A.mT for batches

Where you’ll see it in ML

Everywhere: 𝐰ᵀ𝐱, QKᵀ in attention, fixing shape mismatches.

Don’t confuse it with

Lessons that use it

← All 94 symbols