STIR  6.2.0
Public Member Functions | List of all members
stir::NormSquared< T > Struct Template Reference

A helper class that computes the square of the norm of numeric data. More...

#include "stir/numerics/norm.h"

Public Member Functions

double operator() (T x) const
 

Detailed Description

template<typename T>
struct stir::NormSquared< T >

A helper class that computes the square of the norm of numeric data.

It's there to avoid unnecessary sqrts when computing norms of vectors.

The default template just uses the square (with conversion to double), but we'll specialise it for complex numbers.


The documentation for this struct was generated from the following file: