STIR 6.4.0
norm.h File Reference

Declaration of the stir::norm(), stir::norm_squared() functions and stir::NormSquared unary function. More...

#include "stir/ArrayFwd.h"
#include <complex>
#include <cmath>
#include "stir/numerics/norm.inl"

Go to the source code of this file.

Classes

struct  stir::NormSquared< T >
 A helper class that computes the square of the norm of numeric data. More...
 

Namespaces

namespace  stir
 Namespace for the STIR library (and some/most of its applications)
 

Functions

Functions to compute the norm
template<typename elemT>
double stir::norm_squared (const elemT t)
 Returns the square of the norm of a number.
 
template<typename elemT>
double stir::norm (const elemT t)
 Returns the norm of a number.
 
double stir::norm (const double t)
 
double stir::norm (const float t)
 
template<class Iter>
double stir::norm_squared (Iter begin, Iter end)
 Returns the square of the l2-norm of a sequence.
 
template<class Iter>
double stir::norm (Iter begin, Iter end)
 Returns the l2-norm of a sequence.
 
template<class elemT>
double stir::norm (const Array< 1, elemT > &v1)
 l2 norm of a 1D array
 
template<class elemT>
double stir::norm_squared (const Array< 1, elemT > &v1)
 square of the l2 norm of a 1D array
 

Detailed Description

Declaration of the stir::norm(), stir::norm_squared() functions and stir::NormSquared unary function.

Author
Kris Thielemans