Link Search Menu Expand Document

<cuda/std/complex>

Omissions

When using libcu++ with NVCC, complex does not support long double or complex literals (_i, _if, and _il). NVCC warns on any usage of long double in device code, because long double will be demoted to double in device code. This warning can be suppressed silenced with #pragmas, but only globally, not just when using complex. User-defined floating-point literals must be specified in terms of long double, so they lead to warns that are unable to be suppressed.