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
: Thecomplex
from which to calculate the absolute value.