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

Function infinity

src/backend/common/half.hpp:1092–1102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1090 }
1091
1092 AF_CONSTEXPR static half infinity() {
1093 half out;
1094#ifdef __CUDA_ARCH__
1095 out.data_ = __half_raw{0x7C00};
1096#elif defined(AF_ONEAPI)
1097 out.data_ = std::numeric_limits<sycl::half>::infinity();
1098#else
1099 out.data_ = 0x7C00;
1100#endif
1101 return out;
1102 }
1103};
1104
1105AF_CONSTEXPR __DH__ static inline bool operator==(

Callers 15

builtin_isinfFunction · 0.85
half2float_implFunction · 0.85
hypotMethod · 0.85
asinhMethod · 0.85
lgammaMethod · 0.85
tgammaMethod · 0.85
TESTFunction · 0.85
maxvalFunction · 0.85
minvalFunction · 0.85
getInfFunction · 0.85
maxvalFunction · 0.85
minvalFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected