Contents

<cuda/std/numbers>#

2026-10-07

1 min read time

Applies to Linux and Windows

This page documents cuda::std::numbers in libhipcxx, which provides mathematical constants such as pi and e in host and device code.

Extensions#

  • The C++20 <numbers> mathematical constants are available in C++17.

  • Specializations for the HIP extended floating-point type __hip_bfloat16 are provided. Specializations for __half are currently not provided.