| 1293 | } |
| 1294 | |
| 1295 | static PyObject * |
| 1296 | array_repeat(PyArrayObject *self, PyObject *args, PyObject *kwds) { |
| 1297 | PyObject *repeats; |
| 1298 | int axis = NPY_MAXDIMS; |
| 1299 | static char *kwlist[] = {"repeats", "axis", NULL}; |
| 1300 | |
| 1301 | if (!PyArg_ParseTupleAndKeywords(args, kwds, "O|O&:repeat", kwlist, |
| 1302 | &repeats, |
| 1303 | PyArray_AxisConverter, &axis)) { |
| 1304 | return NULL; |
| 1305 | } |
| 1306 | return PyArray_Return((PyArrayObject *)PyArray_Repeat(self, repeats, axis)); |
| 1307 | } |
| 1308 | |
| 1309 | static PyObject * |
| 1310 | array_choose(PyArrayObject *self, PyObject *args, PyObject *kwds) |
nothing calls this directly
no test coverage detected