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 / special / _ufunc_tools / _make_ufunc_wrapper

function

scipy.special._ufunc_tools:_make_ufunc_wrapper

source: build-install/usr/lib/python3.14/site-packages/scipy/special/_ufunc_tools.py:401

Signature

def _make_ufunc_wrapper(func, ufunc, name, arg_names, docstring, module = scipy.special)

Summary

Create new wrapper that gives ufunc-like behavior to func.

Parameters

func : callable

The function to wrap.

ufunc : callable

The underlying ufunc or ufunc wrapper that func wraps.

name : str

Name of the function.

arg_names : list[str]

Names of the arguments. May include positional default values (e.g., ["z", "k=0"]).

docstring : str

The docstring for the wrapper.

module : str, optional

Value to use for the __module__ attribute of the wrapper.

Returns

: callable

A wrapper for func that maintains relevant ufunc kwargs, attributes, and methods.

Aliases

  • scipy.special._support_alternative_backends._make_ufunc_wrapper