qimpy.math.quintic_spline.get_coeff

get_coeff(samples)

Compute spline coefficients from uniformly-spaced samples. This 1D spline assumes a mirror-symmetry boundary condition at the left end, since this is used primarily for radial functions defined with this symmetry. At the right end, the coefficients are generated using natural boundary conditions i.e. zero third and fourth derivatives.

The output are coefficients to localized 5th order ‘blip’ functions, and will have two extra coefficients on each end since the blip functions have a range of two intervals. Any preceding dimensions in samples are batched over. Specifically, a (…, N) input will result in a coefficient output with dimensions (N+4, …) suitable for use with Interpolator.

Parameters:

samples (Tensor) –

Return type:

Tensor