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 Machine Learning at 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 poweredSumulat ng LaTeX gamit ang AI

Pinakamahusay na AI LaTeX Editor, Alternatibo sa Overleaf

Tinutulungan ng Octree ang mga researcher mula sa 15+ na unibersidad na sumulat ng research papers nang mas mabilis gamit ang AI

  • Gumawa ng magagandang TikZ diagrams gamit ang AI
  • Mag-upload ng larawan at i-convert ito sa LaTeX nang walang problema
  • Makakuha ng instant na tulong sa pagsulat at pag-format ng research papers