Frobenius norm for all matrix classes