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

Function bilinearInterpFunc

src/backend/cuda/kernel/interp.hpp:45–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43
44template<typename Ty, typename Tp>
45__device__ Ty bilinearInterpFunc(Ty val[2][2], Tp xratio, Tp yratio) {
46 Ty res[2];
47 res[0] = linearInterpFunc(val[0], xratio);
48 res[1] = linearInterpFunc(val[1], xratio);
49 return linearInterpFunc(res, yratio);
50}
51
52template<typename Ty, typename Tp>
53__device__ inline static Ty cubicInterpFunc(Ty val[4], Tp xratio, bool spline) {

Callers 1

operator()Method · 0.70

Calls 1

linearInterpFuncFunction · 0.70

Tested by

no test coverage detected