thrust

◆ abs()

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

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

Parameters
zThe complex from which to calculate the absolute value.

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