MCPcopy Create free account
hub / github.com/apache/arrow / import_numpy

Function import_numpy

python/pyarrow/src/arrow/python/numpy_interop.h:71–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69namespace py {
70
71inline int import_numpy() {
72#ifdef NUMPY_IMPORT_ARRAY
73 if (PyArray_ImportNumPyAPI() < 0) return -1;
74 if (PyUFunc_ImportUFuncAPI() < 0) return -1;
75#endif
76
77 return 0;
78}
79
80// See above about the missing Numpy integer type numbers
81inline int fix_numpy_type_num(int type_num) {

Callers 1

arrow_init_numpyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected