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

Function array_repeat

numpy/core/src/multiarray/methods.c:1295–1307  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1293}
1294
1295static PyObject *
1296array_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
1309static PyObject *
1310array_choose(PyArrayObject *self, PyObject *args, PyObject *kwds)

Callers

nothing calls this directly

Calls 2

PyArray_ReturnFunction · 0.85
PyArray_RepeatFunction · 0.85

Tested by

no test coverage detected