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

Function PyArray_IntpFromPyIntConverter

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

Source from the content-addressed store, hash-verified

1064
1065
1066NPY_NO_EXPORT int
1067PyArray_IntpFromPyIntConverter(PyObject *o, npy_intp *val)
1068{
1069 *val = PyArray_PyIntAsIntp(o);
1070 if (error_converting(*val)) {
1071 return NPY_FAIL;
1072 }
1073 return NPY_SUCCEED;
1074}
1075
1076
1077/**

Callers

nothing calls this directly

Calls 1

PyArray_PyIntAsIntpFunction · 0.85

Tested by

no test coverage detected