MCPcopy Create free account
hub / github.com/numpy/numpy / PyArray_GetArrayParamsFromObject

Function PyArray_GetArrayParamsFromObject

numpy/core/src/multiarray/ctors.c:1479–1494  ·  view source on GitHub ↗

NUMPY_API*/

Source from the content-addressed store, hash-verified

1477
1478/*NUMPY_API*/
1479NPY_NO_EXPORT int
1480PyArray_GetArrayParamsFromObject(PyObject *NPY_UNUSED(op),
1481 PyArray_Descr *NPY_UNUSED(requested_dtype),
1482 npy_bool NPY_UNUSED(writeable),
1483 PyArray_Descr **NPY_UNUSED(out_dtype),
1484 int *NPY_UNUSED(out_ndim), npy_intp *NPY_UNUSED(out_dims),
1485 PyArrayObject **NPY_UNUSED(out_arr), PyObject *NPY_UNUSED(context))
1486{
1487 /* Deprecated in NumPy 1.19, removed in NumPy 1.20. */
1488 PyErr_SetString(PyExc_RuntimeError,
1489 "PyArray_GetArrayParamsFromObject() C-API function is removed "
1490 "`PyArray_FromAny()` should be used at this time. New C-API "
1491 "may be exposed in the future (please do request this if it "
1492 "would help you).");
1493 return -1;
1494}
1495
1496
1497/*NUMPY_API

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected