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

Function PyArray_PyIntFromIntp

numpy/core/src/multiarray/conversion_utils.h:55–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53
54
55static inline PyObject *
56PyArray_PyIntFromIntp(npy_intp const value)
57{
58#if NPY_SIZEOF_INTP <= NPY_SIZEOF_LONG
59 return PyLong_FromLong((long)value);
60#else
61 return PyLong_FromLongLong((npy_longlong)value);
62#endif
63}
64
65NPY_NO_EXPORT PyObject *
66PyArray_IntTupleFromIntp(int len, npy_intp const *vals);

Callers 6

array_size_getFunction · 0.85
array_nbytes_getFunction · 0.85
iter_index_getFunction · 0.85
arraymultiter_size_getFunction · 0.85
arraymultiter_index_getFunction · 0.85
PyArray_IntTupleFromIntpFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected