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

Function minval

src/backend/opencl/math.hpp:126–132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

124}
125template<typename T>
126inline T minval() {
127 if constexpr (std::is_floating_point_v<T> && !fast_math) {
128 return -std::numeric_limits<T>::infinity();
129 } else {
130 return std::numeric_limits<T>::lowest();
131 }
132}
133
134static inline double real(cdouble in) { return in.s[0]; }
135static inline float real(cfloat in) { return in.s[0]; }

Callers

nothing calls this directly

Calls 1

infinityFunction · 0.85

Tested by

no test coverage detected