thrust::pow

Defined in thrust/complex.h

template<typename T0, typename T1>
complex<::cuda::std::common_type_t<T0, T1>> thrust::pow(const complex<T0> &x, const complex<T1> &y)

Returns a complex number raised to another.

The value types of the two complex types should be compatible and the type of the returned complex is the promoted type of the two arguments.

Parameters
  • x – The base.

  • y – The exponent.