Linear algebra
Frobenius norm
linalg.frobenius-normAlso called frobenius norm, frobenius, fro norm, matrix norm
Square root of the sum of the squared entries of a matrix.
Notation
matrix
A ∈ ℝm×n
rows
Size, at least 1
columns
Size, at least 1
Result: the norm
scalar
Worked examples
Each result is solved exactly and confirmed by two independent computations.
Given
Result
≈ 5.47722557505
Given
Result
Given
Result
Common mistakes
Returns the spectral norm
The result is the largest singular value (the matrix 2-norm, numpy.linalg.norm(A, 2)).
Fix: Use numpy.linalg.norm(A, 'fro'), or the square root of the sum of squared entries.
Returns the squared norm
The final square root is missing.
Fix: Take the square root.
Source
Golub and Van Loan 2013
Golub, Gene H.; Van Loan, Charles F. Matrix Computations. 4th ed. Johns Hopkins University Press, 2013.