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

Function maxval

src/backend/opencl/math.hpp:118–124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

116
117template<typename T>
118inline T maxval() {
119 if constexpr (std::is_floating_point_v<T> && !fast_math) {
120 return std::numeric_limits<T>::infinity();
121 } else {
122 return std::numeric_limits<T>::max();
123 }
124}
125template<typename T>
126inline T minval() {
127 if constexpr (std::is_floating_point_v<T> && !fast_math) {

Callers

nothing calls this directly

Calls 2

infinityFunction · 0.85
maxFunction · 0.70

Tested by

no test coverage detected