| 897 | } |
| 898 | |
| 899 | static int |
| 900 | _keepdims_converter(PyObject *obj, int *keepdims) |
| 901 | { |
| 902 | if (PyBool_Check(obj)) { |
| 903 | *keepdims = (obj == Py_True); |
| 904 | return NPY_SUCCEED; |
| 905 | } |
| 906 | else { |
| 907 | PyErr_SetString(PyExc_TypeError, |
| 908 | "'keepdims' must be a boolean"); |
| 909 | return NPY_FAIL; |
| 910 | } |
| 911 | } |
| 912 | |
| 913 | static int |
| 914 | _wheremask_converter(PyObject *obj, PyArrayObject **wheremask) |
no outgoing calls
no test coverage detected