Computes the computation of norms for vectors. More...
#include <cmath>
#include "viennagrid/forwards.h"
#include "viennagrid/traits/point.hpp"
#include "viennagrid/point.hpp"
Go to the source code of this file.
Data Structures | |
struct | norm_impl< Tag > |
struct | norm_impl< viennagrid::one_tag > |
Implementation of the 1-norm. More... | |
struct | norm_impl< viennagrid::two_tag > |
Implementation of the 2-norm. More... | |
struct | norm_impl< viennagrid::inf_tag > |
Implementation of the inf-norm. More... | |
Namespaces | |
namespace | viennagrid |
The main ViennaGrid namespace. Most functionality resides in this namespace. | |
namespace | viennagrid::detail |
The namespace holding the implementations of domains, segments and ncells as well as some algorithm implementations. Not of interest for library users. | |
Functions | |
template<typename NormTag , typename PointType , typename CSystem > | |
traits::value_type< PointType > ::type | norm_impl (PointType const &p, CSystem const &) |
Dispatch for a point that needs coordinate conversion. | |
template<typename NormTag , typename PointType1 , long d> | |
traits::value_type< PointType1 > ::type | norm_impl (PointType1 const &p, cartesian_cs< d >) |
Dispatch for a point that does not need coordinate conversion. | |
template<typename PointType , typename Tag > | |
traits::value_type< PointType > ::type | norm (PointType const &p, Tag) |
Returns the norm of a point. The type of the norm is specified by a tag. Supported tags are one_tag, two_tag and inf_tag. | |
template<typename PointType > | |
traits::value_type< PointType > ::type | norm (PointType const &p) |
Returns the 2-norm of a point. Result is such as if the point were transformed to Cartesian coordinates first. | |
template<typename PointType > | |
traits::value_type< PointType > ::type | norm_1 (PointType const &p) |
Convenience shortcut for the 1-norm of a vector. | |
template<typename PointType > | |
traits::value_type< PointType > ::type | norm_2 (PointType const &p) |
Convenience shortcut for the 2-norm of a vector. | |
template<typename PointType > | |
traits::value_type< PointType > ::type | norm_inf (PointType const &p) |
Convenience shortcut for the inf-norm of a vector. |
Computes the computation of norms for vectors.