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

Function PyArray_Size

numpy/core/src/multiarray/arrayobject.c:71–80  ·  view source on GitHub ↗

NUMPY_API Compute the size of an array (in number of items) */

Source from the content-addressed store, hash-verified

69 Compute the size of an array (in number of items)
70*/
71NPY_NO_EXPORT npy_intp
72PyArray_Size(PyObject *op)
73{
74 if (PyArray_Check(op)) {
75 return PyArray_SIZE((PyArrayObject *)op);
76 }
77 else {
78 return 0;
79 }
80}
81
82/*NUMPY_API */
83NPY_NO_EXPORT int

Callers 4

unpack_bitsFunction · 0.85
dump_attrsFunction · 0.85
check_and_fix_dimensionsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected