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

Function f2py_report_on_array_copy

numpy/f2py/src/fortranobject.c:676–685  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

674
675#ifdef F2PY_REPORT_ON_ARRAY_COPY
676static void
677f2py_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}
686static void
687f2py_report_on_array_copy_fromany(void)
688{

Callers

nothing calls this directly

Calls 2

PyArray_SizeFunction · 0.85
PyArray_ITEMSIZEFunction · 0.85

Tested by

no test coverage detected