This is a pre-release version (2.0.0.dev0+git20260907.41eeb59).Go to latest (1.18.0)
{ } Raw JSON

bundles / scipy 2.0.0.dev0+git20260907.41eeb59 / 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 LowLevelCallable

Either the name of a built-in RBF (str) or a LowLevelCallable wrapping a user-compiled double (*)(double) kernel.

Returns

capsule : PyCapsule

Opaque 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