\hypertarget{a02698}{
\section{mln::norm Namespace Reference}
\label{da/d22/a02698}\index{mln::norm@{mln::norm}}
}


Namespace of norms.  


\subsection*{Namespaces}
\begin{DoxyCompactItemize}
\item 
namespace \hyperlink{a02699}{impl}


\begin{DoxyCompactList}\small\item\em Implementation namespace of norm namespace. \item\end{DoxyCompactList}

\end{DoxyCompactItemize}
\subsection*{Functions}
\begin{Indent}{\bf }\par
{\em \label{_amgrpd41d8cd98f00b204e9800998ecf8427e}
 }\begin{DoxyCompactItemize}
\item 
{\footnotesize template$<$unsigned n, typename C $>$ }\\mln::trait::value\_\-$<$ typename mln::trait::op::times$<$ C, C $>$::ret $>$::sum \hyperlink{a02698_ad90f017be62ca3bf16cde1bb44170dd8}{l2} (const C(\&vec)\mbox{[}n\mbox{]})
\begin{DoxyCompactList}\small\item\em L2-\/norm of a vector {\itshape vec\/}. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\end{Indent}
\begin{Indent}{\bf }\par
{\em \label{_amgrpd41d8cd98f00b204e9800998ecf8427e}
 }\begin{DoxyCompactItemize}
\item 
{\footnotesize template$<$unsigned n, typename C $>$ }\\mln::trait::value\_\-$<$ typename mln::trait::op::times$<$ C, C $>$::ret $>$::sum \hyperlink{a02698_afc53d0b2f0bb4b9281fe57f049d380a9}{l1} (const C(\&vec)\mbox{[}n\mbox{]})
\begin{DoxyCompactList}\small\item\em L1-\/norm of a vector {\itshape vec\/}. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\end{Indent}
\begin{Indent}{\bf }\par
{\em \label{_amgrpd41d8cd98f00b204e9800998ecf8427e}
 }\begin{DoxyCompactItemize}
\item 
{\footnotesize template$<$unsigned n, typename C $>$ }\\mln::trait::value\_\-$<$ typename mln::trait::op::times$<$ C, C $>$::ret $>$::sum \hyperlink{a02698_ae2b2ea93debb414a8cd09a83b7914e0f}{l1\_\-distance} (const C(\&vec1)\mbox{[}n\mbox{]}, const C(\&vec2)\mbox{[}n\mbox{]})
\begin{DoxyCompactList}\small\item\em L1-\/norm distance between vectors {\itshape vec1\/} and {\itshape vec2\/}. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\end{Indent}
\begin{Indent}{\bf }\par
{\em \label{_amgrpd41d8cd98f00b204e9800998ecf8427e}
 }\begin{DoxyCompactItemize}
\item 
{\footnotesize template$<$unsigned n, typename C $>$ }\\mln::trait::value\_\-$<$ typename mln::trait::op::times$<$ C, C $>$::ret $>$::sum \hyperlink{a02698_acad0040501a5f55aea3dbdcd26c599d8}{sqr\_\-l2} (const C(\&vec)\mbox{[}n\mbox{]})
\begin{DoxyCompactList}\small\item\em Squared L2-\/norm of a vector {\itshape vec\/}. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\end{Indent}
\begin{Indent}{\bf }\par
{\em \label{_amgrpd41d8cd98f00b204e9800998ecf8427e}
 }\begin{DoxyCompactItemize}
\item 
{\footnotesize template$<$unsigned n, typename C $>$ }\\mln::trait::value\_\-$<$ typename mln::trait::op::times$<$ C, C $>$::ret $>$::sum \hyperlink{a02698_aa18b95175a8bcf6699c6a9acdbbfc723}{l2\_\-distance} (const C(\&vec1)\mbox{[}n\mbox{]}, const C(\&vec2)\mbox{[}n\mbox{]})
\begin{DoxyCompactList}\small\item\em L2-\/norm distance between vectors {\itshape vec1\/} and {\ttfamily vec2}. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\end{Indent}
\begin{Indent}{\bf }\par
{\em \label{_amgrpd41d8cd98f00b204e9800998ecf8427e}
 }\begin{DoxyCompactItemize}
\item 
{\footnotesize template$<$unsigned n, typename C $>$ }\\C \hyperlink{a02698_a811fb8d5104d40f0e7f3330d953d29b6}{linfty} (const C(\&vec)\mbox{[}n\mbox{]})
\begin{DoxyCompactList}\small\item\em L-\/infinity-\/norm of a vector {\itshape vec\/}. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\end{Indent}
\begin{Indent}{\bf }\par
{\em \label{_amgrpd41d8cd98f00b204e9800998ecf8427e}
 }\begin{DoxyCompactItemize}
\item 
{\footnotesize template$<$unsigned n, typename C $>$ }\\C \hyperlink{a02698_a3756d85a16cde64098942d72b0195ebc}{linfty\_\-distance} (const C(\&vec1)\mbox{[}n\mbox{]}, const C(\&vec2)\mbox{[}n\mbox{]})
\begin{DoxyCompactList}\small\item\em L-\/infinity-\/norm distance between vectors {\itshape vec1\/} and {\itshape vec2\/}. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\end{Indent}


\subsection{Detailed Description}
Namespace of norms. 

\subsection{Function Documentation}
\hypertarget{a02698_afc53d0b2f0bb4b9281fe57f049d380a9}{
\index{mln::norm@{mln::norm}!l1@{l1}}
\index{l1@{l1}!mln::norm@{mln::norm}}
\subsubsection[{l1}]{\setlength{\rightskip}{0pt plus 5cm}template$<$unsigned n, typename C $>$ mln::trait::value\_\-$<$ typename mln::trait::op::times$<$ C, C $>$::ret $>$::sum mln::norm::l1 (
\begin{DoxyParamCaption}
\item[{const C(\&)}]{ vec\mbox{[}n\mbox{]}}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{da/d22/a02698_afc53d0b2f0bb4b9281fe57f049d380a9}


L1-\/norm of a vector {\itshape vec\/}. 



Definition at line 108 of file l1.hh.

\hypertarget{a02698_ae2b2ea93debb414a8cd09a83b7914e0f}{
\index{mln::norm@{mln::norm}!l1\_\-distance@{l1\_\-distance}}
\index{l1\_\-distance@{l1\_\-distance}!mln::norm@{mln::norm}}
\subsubsection[{l1\_\-distance}]{\setlength{\rightskip}{0pt plus 5cm}template$<$unsigned n, typename C $>$ mln::trait::value\_\-$<$ typename mln::trait::op::times$<$ C, C $>$::ret $>$::sum mln::norm::l1\_\-distance (
\begin{DoxyParamCaption}
\item[{const C(\&)}]{ vec1\mbox{[}n\mbox{]}, }
\item[{const C(\&)}]{ vec2\mbox{[}n\mbox{]}}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{da/d22/a02698_ae2b2ea93debb414a8cd09a83b7914e0f}


L1-\/norm distance between vectors {\itshape vec1\/} and {\itshape vec2\/}. 



Definition at line 124 of file l1.hh.

\hypertarget{a02698_ad90f017be62ca3bf16cde1bb44170dd8}{
\index{mln::norm@{mln::norm}!l2@{l2}}
\index{l2@{l2}!mln::norm@{mln::norm}}
\subsubsection[{l2}]{\setlength{\rightskip}{0pt plus 5cm}template$<$unsigned n, typename C $>$ mln::trait::value\_\-$<$ typename mln::trait::op::times$<$ C, C $>$::ret $>$::sum mln::norm::l2 (
\begin{DoxyParamCaption}
\item[{const C(\&)}]{ vec\mbox{[}n\mbox{]}}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{da/d22/a02698_ad90f017be62ca3bf16cde1bb44170dd8}


L2-\/norm of a vector {\itshape vec\/}. 



Definition at line 139 of file l2.hh.

\hypertarget{a02698_aa18b95175a8bcf6699c6a9acdbbfc723}{
\index{mln::norm@{mln::norm}!l2\_\-distance@{l2\_\-distance}}
\index{l2\_\-distance@{l2\_\-distance}!mln::norm@{mln::norm}}
\subsubsection[{l2\_\-distance}]{\setlength{\rightskip}{0pt plus 5cm}template$<$unsigned n, typename C $>$ mln::trait::value\_\-$<$ typename mln::trait::op::times$<$ C, C $>$::ret $>$::sum mln::norm::l2\_\-distance (
\begin{DoxyParamCaption}
\item[{const C(\&)}]{ vec1\mbox{[}n\mbox{]}, }
\item[{const C(\&)}]{ vec2\mbox{[}n\mbox{]}}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{da/d22/a02698_aa18b95175a8bcf6699c6a9acdbbfc723}


L2-\/norm distance between vectors {\itshape vec1\/} and {\ttfamily vec2}. 



Definition at line 173 of file l2.hh.

\hypertarget{a02698_a811fb8d5104d40f0e7f3330d953d29b6}{
\index{mln::norm@{mln::norm}!linfty@{linfty}}
\index{linfty@{linfty}!mln::norm@{mln::norm}}
\subsubsection[{linfty}]{\setlength{\rightskip}{0pt plus 5cm}template$<$unsigned n, typename C $>$ C mln::norm::linfty (
\begin{DoxyParamCaption}
\item[{const C(\&)}]{ vec\mbox{[}n\mbox{]}}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{da/d22/a02698_a811fb8d5104d40f0e7f3330d953d29b6}


L-\/infinity-\/norm of a vector {\itshape vec\/}. 



Definition at line 113 of file linfty.hh.

\hypertarget{a02698_a3756d85a16cde64098942d72b0195ebc}{
\index{mln::norm@{mln::norm}!linfty\_\-distance@{linfty\_\-distance}}
\index{linfty\_\-distance@{linfty\_\-distance}!mln::norm@{mln::norm}}
\subsubsection[{linfty\_\-distance}]{\setlength{\rightskip}{0pt plus 5cm}template$<$unsigned n, typename C $>$ C mln::norm::linfty\_\-distance (
\begin{DoxyParamCaption}
\item[{const C(\&)}]{ vec1\mbox{[}n\mbox{]}, }
\item[{const C(\&)}]{ vec2\mbox{[}n\mbox{]}}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{da/d22/a02698_a3756d85a16cde64098942d72b0195ebc}


L-\/infinity-\/norm distance between vectors {\itshape vec1\/} and {\itshape vec2\/}. 



Definition at line 127 of file linfty.hh.

\hypertarget{a02698_acad0040501a5f55aea3dbdcd26c599d8}{
\index{mln::norm@{mln::norm}!sqr\_\-l2@{sqr\_\-l2}}
\index{sqr\_\-l2@{sqr\_\-l2}!mln::norm@{mln::norm}}
\subsubsection[{sqr\_\-l2}]{\setlength{\rightskip}{0pt plus 5cm}template$<$unsigned n, typename C $>$ mln::trait::value\_\-$<$ typename mln::trait::op::times$<$ C, C $>$::ret $>$::sum mln::norm::sqr\_\-l2 (
\begin{DoxyParamCaption}
\item[{const C(\&)}]{ vec\mbox{[}n\mbox{]}}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{da/d22/a02698_acad0040501a5f55aea3dbdcd26c599d8}


Squared L2-\/norm of a vector {\itshape vec\/}. 



Definition at line 156 of file l2.hh.



Referenced by mln::geom::mesh\_\-corner\_\-point\_\-area(), and mln::geom::mesh\_\-normal().

