STIR
6.2.0
|
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 |
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.