# mln::norm Namespace Reference

Namespace of norms. More...

## Namespaces

namespace  impl
Implementation namespace of norm namespace.

## Functions

template<unsigned n, typename C >
mln::trait::value_< typename
mln::trait::op::times< C, C >
::ret >::sum
l1 (const C(&vec)[n])
L1-norm of a vector vec.
template<unsigned n, typename C >
mln::trait::value_< typename
mln::trait::op::times< C, C >
::ret >::sum
l1_distance (const C(&vec1)[n], const C(&vec2)[n])
L1-norm distance between vectors vec1 and vec2.
template<unsigned n, typename C >
mln::trait::value_< typename
mln::trait::op::times< C, C >
::ret >::sum
l2 (const C(&vec)[n])
L2-norm of a vector vec.
template<unsigned n, typename C >
mln::trait::value_< typename
mln::trait::op::times< C, C >
::ret >::sum
l2_distance (const C(&vec1)[n], const C(&vec2)[n])
L2-norm distance between vectors vec1 and `vec2`.
template<unsigned n, typename C >
linfty (const C(&vec)[n])
L-infinity-norm of a vector vec.
template<unsigned n, typename C >
linfty_distance (const C(&vec1)[n], const C(&vec2)[n])
L-infinity-norm distance between vectors vec1 and vec2.
template<unsigned n, typename C >
mln::trait::value_< typename
mln::trait::op::times< C, C >
::ret >::sum
sqr_l2 (const C(&vec)[n])
Squared L2-norm of a vector vec.

## Detailed Description

Namespace of norms.

## Function Documentation

template<unsigned n, typename C >
 mln::trait::value_< typename mln::trait::op::times< C, C >::ret >::sum mln::norm::l1 ( const C(&) vec[n] ) ` [inline]`

L1-norm of a vector vec.

template<unsigned n, typename C >
 mln::trait::value_< typename mln::trait::op::times< C, C >::ret >::sum mln::norm::l1_distance ( const C(&) vec1[n], const C(&) vec2[n] ) ` [inline]`

L1-norm distance between vectors vec1 and vec2.

template<unsigned n, typename C >
 mln::trait::value_< typename mln::trait::op::times< C, C >::ret >::sum mln::norm::l2 ( const C(&) vec[n] ) ` [inline]`

L2-norm of a vector vec.

template<unsigned n, typename C >
 mln::trait::value_< typename mln::trait::op::times< C, C >::ret >::sum mln::norm::l2_distance ( const C(&) vec1[n], const C(&) vec2[n] ) ` [inline]`

L2-norm distance between vectors vec1 and `vec2`.

template<unsigned n, typename C >
 C mln::norm::linfty ( const C(&) vec[n] ) ` [inline]`

L-infinity-norm of a vector vec.

template<unsigned n, typename C >
 C mln::norm::linfty_distance ( const C(&) vec1[n], const C(&) vec2[n] ) ` [inline]`

L-infinity-norm distance between vectors vec1 and vec2.

template<unsigned n, typename C >
 mln::trait::value_< typename mln::trait::op::times< C, C >::ret >::sum mln::norm::sqr_l2 ( const C(&) vec[n] ) ` [inline]`

Squared L2-norm of a vector vec.

Referenced by mln::geom::mesh_corner_point_area(), and mln::geom::mesh_normal().

Generated on Tue Jul 14 16:33:13 2009 for Milena (Olena) by  1.5.9