bundles / scipy 1.18.0 / scipy / _lib / _array_api / scipy_namespace_for
function
scipy._lib._array_api:scipy_namespace_for
source: /scipy/_lib/_array_api.py:430
Signature
def scipy_namespace_for(xp: ModuleType) → ModuleType | NoneSummary
Return the scipy-like namespace of a non-NumPy backend
Extended Summary
That is, return the namespace corresponding with backend xp that contains scipy sub-namespaces like linalg and special. If no such namespace exists, return None. Useful for dispatching.
Aliases
scipy.interpolate._bsplines.scipy_namespace_for