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

Function maxval

src/backend/cuda/math.hpp:151–156  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

149
150template<typename T>
151inline T maxval() {
152 AF_IF_CONSTEXPR(std::is_floating_point<T>::value && !fast_math) {
153 return std::numeric_limits<T>::infinity();
154 }
155 else { return std::numeric_limits<T>::max(); }
156}
157template<typename T>
158inline T minval() {
159 AF_IF_CONSTEXPR(std::is_floating_point<T>::value && !fast_math) {

Callers

nothing calls this directly

Calls 3

AF_IF_CONSTEXPRFunction · 0.85
infinityFunction · 0.85
maxFunction · 0.70

Tested by

no test coverage detected