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

Function transform

src/backend/cuda/transform.cpp:20–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18
19template<typename T>
20void transform(Array<T> &out, const Array<T> &in, const Array<float> &tf,
21 const af::interpType method, const bool inverse,
22 const bool perspective) {
23 // TODO: Temporary Fix, must fix handling subarrays upstream
24 // tf has to be linear, although offset is allowed.
25 const Array<float> tf_Lin = tf.isLinear() ? tf : copyArray(tf);
26
27 kernel::transform<T>(out, in, tf_Lin, inverse, perspective, method,
28 interpOrder(method));
29}
30
31#define INSTANTIATE(T) \
32 template void transform(Array<T> &out, const Array<T> &in, \

Callers 1

compileModuleFunction · 0.70

Calls 3

interpOrderFunction · 0.85
copyArrayFunction · 0.70
isLinearMethod · 0.45

Tested by

no test coverage detected