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

Function array_put

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

Source from the content-addressed store, hash-verified

152}
153
154static PyObject *
155array_put(PyArrayObject *self, PyObject *args, PyObject *kwds)
156{
157 PyObject *indices, *values;
158 NPY_CLIPMODE mode = NPY_RAISE;
159 static char *kwlist[] = {"indices", "values", "mode", NULL};
160
161 if (!PyArg_ParseTupleAndKeywords(args, kwds, "OO|O&:put", kwlist,
162 &indices,
163 &values,
164 PyArray_ClipmodeConverter, &mode))
165 return NULL;
166 return PyArray_PutTo(self, values, indices, mode);
167}
168
169static PyObject *
170array_reshape(PyArrayObject *self, PyObject *args, PyObject *kwds)

Callers

nothing calls this directly

Calls 1

PyArray_PutToFunction · 0.85

Tested by

no test coverage detected