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

Function idx_y

src/backend/cuda/kernel/fast.hpp:24–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22namespace kernel {
23
24inline __device__ int idx_y(const int i) {
25 int j = i - 4;
26 int k = min(j, 8 - j);
27 return clamp(k, -3, 3);
28}
29
30inline __device__ int idx_x(const int i) { return idx_y((i + 4) & 15); }
31

Callers 2

idx_xFunction · 0.70
locate_features_coreFunction · 0.70

Calls 2

minFunction · 0.50
clampFunction · 0.50

Tested by

no test coverage detected