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

Function linearInterpFunc

src/backend/cpu/kernel/interp.hpp:32–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30
31template<typename InT, typename LocT>
32InT linearInterpFunc(InT val[2], LocT ratio) {
33 return (1 - ratio) * val[0] + ratio * val[1];
34}
35
36template<typename InT, typename LocT>
37InT bilinearInterpFunc(InT val[2][2], LocT xratio, LocT yratio) {

Callers 2

bilinearInterpFuncFunction · 0.70
operator()Method · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected