| 18 | |
| 19 | template<typename T> |
| 20 | void 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, \ |
no test coverage detected