ViennaGrid - The Vienna Grid Library
2.1.0
|
Functions for the computation of norms for vectors. More...
Go to the source code of this file.
Data Structures | |
struct | norm_impl< Tag > |
struct | norm_impl< viennagrid::inf_norm_tag > |
Implementation of the inf-norm. More... | |
struct | norm_impl< viennagrid::one_norm_tag > |
Implementation of the 1-norm. More... | |
struct | norm_impl< viennagrid::two_norm_tag > |
Implementation of the 2-norm. More... | |
Namespaces | |
namespace | viennagrid |
The main ViennaGrid namespace. Most user functionality resides directly in this namespace rather than in sub-namespaces. | |
namespace | viennagrid::detail |
Namespace for implementation details. Not intended to be used directly by a library user. | |
Functions | |
template<typename PointT , typename Tag > | |
viennagrid::result_of::coord < PointT >::type | norm (PointT const &p, Tag) |
Returns the norm of a point. The type of the norm is specified by a tag. Supported tags are one_norm_tag, two_norm_tag and inf_norm_tag. | |
template<typename PointT > | |
viennagrid::result_of::coord < PointT >::type | norm (PointT const &p) |
Returns the 2-norm of a point. Result is such as if the point were transformed to Cartesian coordinates first. | |
template<typename PointT > | |
viennagrid::result_of::coord < PointT >::type | norm_1 (PointT const &p) |
Convenience shortcut for the 1-norm of a vector. | |
template<typename PointT > | |
viennagrid::result_of::coord < PointT >::type | norm_2 (PointT const &p) |
Convenience shortcut for the 2-norm of a vector. | |
template<typename NormTag , typename PointT , typename CoordinateSystemT > | |
viennagrid::result_of::coord < PointT >::type | norm_impl (PointT const &p, CoordinateSystemT const &) |
Dispatch for a point that needs coordinate conversion. | |
template<typename NormTag , typename PointT1 , int d> | |
viennagrid::result_of::coord < PointT1 >::type | norm_impl (PointT1 const &p, cartesian_cs< d >) |
Dispatch for a point that does not need coordinate conversion. | |
template<typename PointT > | |
viennagrid::result_of::coord < PointT >::type | norm_inf (PointT const &p) |
Convenience shortcut for the inf-norm of a vector. |
Functions for the computation of norms for vectors.