1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
|
---
grand_parent: Standard API
parent: Numerics Library
nav_order: 2
---
# `<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 `#pragma`s, 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.
|