Next: 2D Interpolation Types, Previous: 2D Interpolation Functions, Up: Interpolation [Index]
The 2D interpolation routines access the function values z_{ij} with the following ordering:
z_ij = za[j*xsize + i]
with i = 0,...,xsize-1 and j = 0,...,ysize-1. However, for ease of use, the following functions are provided to add and retrieve elements from the function grid without requiring knowledge of the internal ordering.
This function sets the value z_{ij} for grid point (i,j) of the array za to z.
This function returns the value z_{ij} for grid point (i,j) stored in the array za.
This function returns the index corresponding to the grid point (i,j). The index is given by j*xsize + i.