summaryrefslogtreecommitdiff
path: root/numpy/array_api/_array_object.py
diff options
context:
space:
mode:
authorPieter Eendebak <pieter.eendebak@gmail.com>2023-01-23 18:58:02 +0100
committerGitHub <noreply@github.com>2023-01-23 18:58:02 +0100
commit172a1942893b5ce55abccd836fdd9f00235a6767 (patch)
treefb445f677bc077ea59afe6ebfa3d50cbe8c1248f /numpy/array_api/_array_object.py
parenta701e87ce0b72a84afa839714fc78ded7783326d (diff)
downloadnumpy-172a1942893b5ce55abccd836fdd9f00235a6767.tar.gz
ENH: Convert methods to vectorcall conversions (#23018)
Convert several methods to the vectorcall convention. The conversions give a performance improvement, see #20790 (comment) Some notes: * For vdot the METH_KEYWORDS was removed, as the C vdot method was positional only. * The add_docstring is converted with an additional check. It was parsed as if (!PyArg_ParseTuple(args, "OO!:add_docstring", &obj, &PyUnicode_Type, &str)), but there is no support for the ! in the npy_parse_arguments * CI was complaining about coverage of _get_ndarray_c_version. A test was added, but only to provide coverage * In function_base.py a redundant check in def place was removed Co-authored-by: Sebastian Berg <sebastian@sipsolutions.net>
Diffstat (limited to 'numpy/array_api/_array_object.py')
0 files changed, 0 insertions, 0 deletions