thrust::abs

Defined in thrust/complex.h

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