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로 원활하게 변환
  • 논문 작성 및 서식에 대한 즉각적인 지원 받기