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

Function array_fill

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

Source from the content-addressed store, hash-verified

139}
140
141static PyObject *
142array_fill(PyArrayObject *self, PyObject *args)
143{
144 PyObject *obj;
145 if (!PyArg_ParseTuple(args, "O:fill", &obj)) {
146 return NULL;
147 }
148 if (PyArray_FillWithScalar(self, obj) < 0) {
149 return NULL;
150 }
151 Py_RETURN_NONE;
152}
153
154static PyObject *
155array_put(PyArrayObject *self, PyObject *args, PyObject *kwds)

Callers

nothing calls this directly

Calls 1

PyArray_FillWithScalarFunction · 0.85

Tested by

no test coverage detected