{ } Raw JSON

bundles / scipy 1.18.0 / scipy / interpolate / _interpolate / _get_xp_bpoly_cls

_lru_cache_wrapper

scipy.interpolate._interpolate:_get_xp_bpoly_cls

source: /scipy/interpolate/_interpolate.py:1266

Signature

def _get_xp_bpoly_cls(xp)

Summary

Returns bpoly class to delegate to for xp along with internal array namespace.

Parameters

xp : module

Returns

cls : type

The bpoly class to delegate to for namespace xp.

namespace : module

The internal namespace that calculations are performed with (may differ from xp, e.g. numpy delegation for torch on CPU).

Aliases

  • scipy.interpolate._interpolate._get_xp_bpoly_cls