Trace
The sum of a square matrix's diagonal. It equals the sum of the eigenvalues, survives a change of basis untouched, and lets you cycle matrices inside it — the trick behind many compact derivations of gradients.
- A square matrix.
- Its i-th diagonal entry.