iwopy.utils.RegularDiscretizationGrid.interpolation_coeffs_point(p)[source]

Get the interpolation coefficients for a point.

Example

>>> g = RegularDiscretizationGrid(...)
>>> p = ...
>>> gpts, c = g.interpolation_coeffs_point(p)
>>> ratg = ... calc results at gpts, shape (n_gpts, x) ...
>>> ires = np.einsum('gx,g->x', ratg, c)

Parameters

p: numpy.ndarray

The point, shape: (n_dims,)

Returns

gpts: numpy.ndarray

The grid points relevant for coeffs, shape: (n_gpts, n_dims)

coeffs: numpy.ndarray

The interpolation coefficients, shape: (n_gpts,)