Template Function thrust::norm

Function Documentation

template<typename T>__host__ __device__ 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.