Template Function thrust::abs¶
Defined in File complex.h
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: Thecomplexfrom which to calculate the absolute value.