24#ifdef BOOST_NO_STDC_NAMESPACE
34struct NormSquared<std::complex<T>>
36 double operator()(
const std::complex<T>& x)
const {
return square(x.real()) +
square(x.imag()); }
44 for (Iter iter = begin; iter != end; ++iter)
This class defines multi-dimensional (numeric) arrays.
Definition Array.h:78
iterator begin()
use to initialise an iterator to the first element of the vector
Definition VectorWithOffset.inl:190
iterator end()
iterator 'past' the last element of the vector
Definition VectorWithOffset.inl:206
double norm(const BasicCoordinate< num_dimensions, coordT > &p1)
compute sqrt(inner_product(p1,p1))
Definition BasicCoordinate.inl:426
double norm_squared(const BasicCoordinate< num_dimensions, coordT > &p1)
compute (inner_product(p1,p1))
Definition BasicCoordinate.inl:415
NUMBER square(const NUMBER &x)
returns the square of a number, templated.
Definition common.h:154