thrust

◆ norm()

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

Returns the square of the magnitude of a complex.

Parameters
zThe complex from which to calculate the norm.

Referenced by thrust::complex< T >::operator std::complex< T >().