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

Method MinMaxOp

src/backend/cpu/kernel/ireduce.hpp:33–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31 T m_val;
32 uint m_idx;
33 MinMaxOp(T val, uint idx) : m_val(val), m_idx(idx) {
34 using arrayfire::cpu::is_nan;
35 if (is_nan(val)) { m_val = common::Binary<T, op>::init(); }
36 }
37
38 void operator()(T val, uint idx) {
39 if ((cabs(val) < cabs(m_val) ||

Callers

nothing calls this directly

Calls 2

is_nanFunction · 0.50
initFunction · 0.50

Tested by

no test coverage detected