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 التعلم الآلي والذكاء الاصطناعي →

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 poweredاكتب LaTeX باستخدام الذكاء الاصطناعي

أفضل محرر LaTeX بالذكاء الاصطناعي، بديل Overleaf

يساعد Octree الباحثين من أكثر من 15 جامعة على كتابة أوراق البحث بشكل أسرع باستخدام الذكاء الاصطناعي

  • أنشئ رسوم TikZ جميلة باستخدام الذكاء الاصطناعي
  • ارفع صورة وحولها إلى LaTeX بسلاسة
  • احصل على مساعدة فورية في كتابة وتنسيق أوراق البحث