| 35 | // Wrapper function for texture fetch |
| 36 | template<typename T> |
| 37 | static inline __device__ T fetch(const int n, |
| 38 | arrayfire::cuda::Param<T> equiv_map, |
| 39 | cudaTextureObject_t tex) { |
| 40 | return tex1Dfetch<T>(tex, n); |
| 41 | } |
| 42 | |
| 43 | template<> |
| 44 | __device__ inline double fetch<double>(const int n, |