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

Function linearInterpFunc

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

Source from the content-addressed store, hash-verified

48
49template<typename Ty, typename Tp>
50Ty linearInterpFunc(Ty val[2], Tp ratio) {
51 return (1 - ratio) * val[0] + ratio * val[1];
52}
53
54template<typename Ty, typename Tp>
55Ty 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