1"""
2Wrapper for the 2D interpolation
3
4References to the arrays are kept within the interp2d (swig) class next to the
5accelerator objects.
6"""
7from . import interpolation2d_wrap
8from . import errors
9_m = interpolation2d_wrap
10interp2d  = _m.interp2d
11_bilinear = _m.gsl_interp2d_bilinear
12_bicubic  = _m.gsl_interp2d_bicubic
13
14class bilinear(interp2d):
15    def __init__(self, x_size, y_size):
16        interp2d.__init__(self, _bilinear, x_size, y_size)
17
18class bicubic(interp2d):
19    def __init__(self, x_size, y_size):
20        interp2d.__init__(self, _bicubic, x_size, y_size)
21
22