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

Function PyArray_PyIntAsInt

numpy/core/src/multiarray/conversion_utils.c:972–976  ·  view source on GitHub ↗

NUMPY_API*/

Source from the content-addressed store, hash-verified

970
971/*NUMPY_API*/
972NPY_NO_EXPORT int
973PyArray_PyIntAsInt(PyObject *o)
974{
975 return PyArray_PyIntAsInt_ErrMsg(o, "an integer is required");
976}
977
978static npy_intp
979PyArray_PyIntAsIntp_ErrMsg(PyObject *o, const char * msg)

Callers 8

npyiter_convert_op_axesFunction · 0.85
_convert_from_tupleFunction · 0.85
_convert_from_dictFunction · 0.85
_parse_axes_argFunction · 0.85
_parse_axis_argFunction · 0.85
PyUFunc_GenericReductionFunction · 0.85

Calls 1

Tested by

no test coverage detected