Namespaces | Functions

/data/development/ViennaCL/dev/viennacl/linalg/norm_2.hpp File Reference

Generic interface for the l^2-norm. See viennacl/linalg/vector_operations.hpp for implementations. More...

#include <math.h>
#include "viennacl/forwards.h"
#include "viennacl/tools/tools.hpp"
#include "viennacl/meta/enable_if.hpp"
#include "viennacl/meta/tag_of.hpp"

Go to the source code of this file.

Namespaces

namespace  viennacl
namespace  viennacl::linalg

Functions

template<typename VectorT >
VectorT::value_type norm_2 (VectorT const &v1, typename viennacl::enable_if< viennacl::is_stl< typename viennacl::traits::tag_of< VectorT >::type >::value >::type *dummy=0)
template<typename ScalarType , unsigned int alignment>
viennacl::scalar_expression
< const viennacl::vector
< ScalarType, alignment >
, const viennacl::vector
< ScalarType, alignment >
, viennacl::op_norm_2 > 
norm_2 (viennacl::vector< ScalarType, alignment > const &v, typename viennacl::enable_if< viennacl::is_viennacl< typename viennacl::traits::tag_of< viennacl::vector< ScalarType, alignment > >::type >::value >::type *dummy=0)

Detailed Description

Generic interface for the l^2-norm. See viennacl/linalg/vector_operations.hpp for implementations.