The Frobenius norm of a matrix is equivalent to the Euclidean L2 norm applied to a flattened matrix. For a matrix A, we have: ∣∣A∣∣F=i,j∑∣aij∣2