title: Cuda linear interpolation using textures
body: <p>I have a curve as follows:</p>
  
  <pre><code>float points[] = {1, 4, 6, 9, 14, 25, 69};
  float images[] = {0.3, 0.4, 0.7, 0.9, 1, 2.5, 5.3};
  </code></pre>
  
  <p>In order to interpolate let's say f(3) I would use linear interpolation between 1 and 4
  In order to interpolate let's say f(15) I would apply a binary search on the array of points and get the lowerBound which is 25 and consider interpolation in the interval [14,25] and so on..</p>
  
  <p>I have found out this method is making my device function very slow. I've heard I can use texture memory and tex1D in order to do so ! is it possible even if points[] is not let's say uniform (incremented by constant step)</p>
  
  <p>Any idea ?</p>