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

Function bilinearInterpFunc

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

Source from the content-addressed store, hash-verified

35
36template<typename InT, typename LocT>
37InT bilinearInterpFunc(InT val[2][2], LocT xratio, LocT yratio) {
38 InT res[2];
39 res[0] = linearInterpFunc(val[0], xratio);
40 res[1] = linearInterpFunc(val[1], xratio);
41 return linearInterpFunc(res, yratio);
42}
43
44template<typename InT, typename LocT>
45InT cubicInterpFunc(InT val[4], LocT xratio, bool spline) {

Callers 1

operator()Method · 0.70

Calls 1

linearInterpFuncFunction · 0.70

Tested by

no test coverage detected