STIR  6.3.0
Classes | Namespaces
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

 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. More...
 
template<typename elemT >
double stir::norm (const elemT t)
 Returns the norm of a number. More...
 
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. More...
 
template<class Iter >
double stir::norm (Iter begin, Iter end)
 Returns the l2-norm of a sequence. More...
 
template<class elemT >
double stir::norm (const Array< 1, elemT > &v1)
 l2 norm of a 1D array More...
 
template<class elemT >
double stir::norm_squared (const Array< 1, elemT > &v1)
 square of the l2 norm of a 1D array More...
 

Detailed Description

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

Author
Kris Thielemans