trace
Say it “trace of A”
Sum of the diagonal entries of a square matrix.
Example
In code
np.trace(A)torch.trace(A)Where you’ll see it in ML
Matrix calculus identities, Frobenius norm, KL between Gaussians.
Say it “trace of A”
Sum of the diagonal entries of a square matrix.
np.trace(A)torch.trace(A)Matrix calculus identities, Frobenius norm, KL between Gaussians.