Template Function thrust::abs

Function Documentation

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

Returns the magnitude (also known as absolute value) of a complex.

Parameters
  • z: The complex from which to calculate the absolute value.