bundles / scipy latest / scipy / interpolate / _rbfinterp_np / _get_kernel_capsule
function
scipy.interpolate._rbfinterp_np:_get_kernel_capsule
source: build-install/usr/lib/python3.14/site-packages/scipy/interpolate/_rbfinterp_np.py:20
Signature
def _get_kernel_capsule(kernel)Summary
Return a float64(float64) capsule for given name.
Parameters
kernel: str or LowLevelCallableEither the name of a built-in RBF (str) or a
LowLevelCallablewrapping a user-compileddouble (*)(double)kernel.
Returns
capsule: PyCapsuleOpaque capsule suitable for passing to
_build_system_with_kernel/_build_evaluation_coefficients_with_kernel.
Notes
For the str path, the compiled capsule is retrieved as a module attribute of _bfinterp_pythran
For the LowLevelCallable path, element 0 of the LLC tuple is the normalised PyCapsule. Pythran ignores the capsule name and trusts the float64(float64) annotation in the export line, so no signature= coercion is needed on the LLC side.
Aliases
scipy.interpolate._rbfinterp_np._get_kernel_capsule