thrust::norm

Defined in thrust/complex.h

template<typename T>
T thrust::norm(const complex<T> &z)

Returns the square of the magnitude of a complex.

Parameters

z – The complex from which to calculate the norm.