Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/arrayfire/arrayfire
/ MinMaxOp
Method
MinMaxOp
src/backend/oneapi/minmax_op.hpp:42–44 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
40
T m_val;
41
uint m_idx;
42
MinMaxOp(T val, uint idx) : m_val(val), m_idx(idx) {
43
if (is_nan(val)) { m_val = common::Binary<compute_t<T>, op>::init(); }
44
}
45
46
void operator()(T val, uint idx) {
47
if ((cabs(val) < cabs(m_val) ||
Callers
nothing calls this directly
Calls
2
is_nan
Function · 0.70
init
Function · 0.70
Tested by
no test coverage detected