NUMPY_API Compute the size of an array (in number of items) */
| 69 | Compute the size of an array (in number of items) |
| 70 | */ |
| 71 | NPY_NO_EXPORT npy_intp |
| 72 | PyArray_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 */ |
| 83 | NPY_NO_EXPORT int |
no outgoing calls
no test coverage detected