Frobenius norm

The euclidean norm (dot-product-and-law-of-cosines)

is the most common measure of length of a vector, the Frobenius norm defined as

is the matrix generalization of the euclidean norm for vectors.

Trace

Beyond the definition formula, another way of calculating it is summing the diagonal—computing the trace—of the dot product between the matrix and its transpose and taking the square root

This stems from the fact that the diagonal of contains the squared column norms—or the squared row norms in reverse order .

Matrix distance

Replacing with defines the distance between matrices