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

Function linearInterpFunc

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

Source from the content-addressed store, hash-verified

38
39template<typename Ty, typename Tp>
40__device__ Ty linearInterpFunc(Ty val[2], Tp ratio) {
41 return (1 - ratio) * val[0] + ratio * val[1];
42}
43
44template<typename Ty, typename Tp>
45__device__ Ty bilinearInterpFunc(Ty val[2][2], Tp xratio, Tp yratio) {

Callers 2

bilinearInterpFuncFunction · 0.70
operator()Method · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected