Converted CUDA and OpenCL platforms to process tabulated functions with the TabulatedFunction API