MCPcopy Create free account
hub / github.com/arrayfire/arrayfire / isinf

Function isinf

src/backend/common/half.hpp:1318–1326  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1316namespace arrayfire {
1317namespace common {
1318AF_CONSTEXPR __DH__ static bool isinf(half val) noexcept {
1319#if __CUDA_ARCH__ >= 530
1320 return __hisinf(val.data_);
1321#elif defined(__CUDA_ARCH__)
1322 return ::isinf(__half2float(val));
1323#else
1324 return val == half::infinity() || val == -half::infinity();
1325#endif
1326}
1327
1328AF_CONSTEXPR __DH__ static inline bool isnan(half val) noexcept {
1329#if __CUDA_ARCH__ >= 530

Callers 2

operator()Method · 0.50
types.cppFile · 0.50

Calls 1

infinityFunction · 0.85

Tested by

no test coverage detected