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

Function relabel

src/backend/cuda/kernel/regions.hpp:100–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98// do not choose zero, which indicates invalid.
99template<typename T>
100__device__ __inline__ static T relabel(const T a, const T b) {
101 T aa = (a == 0) ? arrayfire::cuda::maxval<T>() : a;
102 T bb = (b == 0) ? arrayfire::cuda::maxval<T>() : b;
103 return min(aa, bb);
104}
105
106// Calculates the number of warps at compile time
107template<unsigned thread_count>

Callers 1

update_equivFunction · 0.85

Calls 1

minFunction · 0.50

Tested by

no test coverage detected