Frobenius Norm in LaTeX (\| \mathbf{W} \|_F)

∥W∥F\| \mathbf{W} \|_F
LaTeX command
\| \mathbf{W} \|_F
Package
No package needed: built into LaTeX
Mode
Math mode only

Where it is used

Frobenius norm of the matrix W: the square root of the sum of squares of all its entries.

The Frobenius norm is \|\mathbf{W}\|_F = \sqrt{\sum_{i,j} w_{ij}^2} = \sqrt{\operatorname{tr}(\mathbf{W}^\top \mathbf{W})}, the matrix analogue of the vector L2 norm. It is used for weight decay on matrices, low-rank approximation error, and matrix factorization objectives. It differs from the spectral norm \|\mathbf{W}\|_2, which is the largest singular value. The subscript F is a plain italic letter; some write \mathrm{F}. As with vector norms, \lVert and \rVert give better spacing than \|, especially when the norm is squared or preceded by a coefficient.

Minimal compilable example

Paste this into an empty .tex file and compile it with pdfLaTeX, XeLaTeX or LuaLaTeX.

min⁡U,V∥W−UV⊤∥F2\min_{\mathbf{U},\mathbf{V}} \| \mathbf{W} - \mathbf{U}\mathbf{V}^\top \|_F^2
\documentclass{article}
\begin{document}
Frobenius Norm: $\| \mathbf{W} \|_F$

\[ \min_{\mathbf{U},\mathbf{V}} \| \mathbf{W} - \mathbf{U}\mathbf{V}^\top \|_F^2 \]
\end{document}

Related symbols

All 機械学習・AI →

Frequently asked questions

How do I write Frobenius Norm in LaTeX?
Type \| \mathbf{W} \|_F in math mode, for example $\min_{\mathbf{U},\mathbf{V}} \| \mathbf{W} - \mathbf{U}\mathbf{V}^\top \|_F^2$. It works in plain LaTeX without loading any package.
Which package do I need for \| \mathbf{W} \|_F?
None. \| \mathbf{W} \|_F is part of standard LaTeX, so it compiles with nothing in the preamble but the document class.
Can I use \| \mathbf{W} \|_F in text mode, or only in math mode?
Only in math mode. Outside $...$ LaTeX stops with "Missing $ inserted", so write $\| \mathbf{W} \|_F$ in running text.
Math poweredAIでLaTeXを書く

最高のAI LaTeXエディタ、Overleaf代替

Octreeは15以上の大学の研究者がAIを使って論文をより速く書くのを支援

  • AIで美しいTikZダイアグラムを生成
  • 画像をアップロードしてシームレスにLaTeXに変換
  • 論文の執筆とフォーマットに即座にサポートを取得