| 674 | |
| 675 | #ifdef F2PY_REPORT_ON_ARRAY_COPY |
| 676 | static void |
| 677 | f2py_report_on_array_copy(PyArrayObject *arr) |
| 678 | { |
| 679 | const npy_intp arr_size = PyArray_Size((PyObject *)arr); |
| 680 | if (arr_size > F2PY_REPORT_ON_ARRAY_COPY) { |
| 681 | fprintf(stderr, |
| 682 | "copied an array: size=%ld, elsize=%" NPY_INTP_FMT "\n", |
| 683 | arr_size, (npy_intp)PyArray_ITEMSIZE(arr)); |
| 684 | } |
| 685 | } |
| 686 | static void |
| 687 | f2py_report_on_array_copy_fromany(void) |
| 688 | { |
nothing calls this directly
no test coverage detected