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

Function bilinearInterpFunc

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

Source from the content-addressed store, hash-verified

53
54template<typename Ty, typename Tp>
55Ty bilinearInterpFunc(Ty val[2][2], Tp xratio, Tp yratio) {
56 Ty res[2];
57 res[0] = linearInterpFunc(val[0], xratio);
58 res[1] = linearInterpFunc(val[1], xratio);
59 return linearInterpFunc(res, yratio);
60}
61
62template<typename Ty, typename Tp>
63inline 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