2
0
mirror of https://github.com/boostorg/math.git synced 2026-01-19 04:22:09 +00:00

Annotate GPU markers in constants doc with type caveat

This commit is contained in:
Matt Borland
2024-08-30 15:46:33 -04:00
parent 814cb6e49f
commit 82adb328e7

View File

@@ -227,6 +227,11 @@ either construct from a decimal digit string or calculate on the fly depending u
[[Any other value ['N]][Sets the compile time precision to ['N] bits.]]
]
[h5 GPU Support]
All Boost.Math constants are marked with `BOOST_MATH_GPU_ENABLED` and can be used on both host and device.
Note that when running on device you are limited to using only `float` and `double` types.
[h5 Custom Specializing a constant]
In addition, for user-defined types that need special handling, it's possible to partially-specialize