diff options
| author | Charles Harris <charlesr.harris@gmail.com> | 2018-10-29 12:12:13 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-10-29 12:12:13 -0500 |
| commit | 0dc45ecc707766c6983eae9b65e2bf518c487dc7 (patch) | |
| tree | 1eb6bb2843660e48c6f6d9788a4bc40684045558 /numpy | |
| parent | dd14431323fdca18d76ee1b99a28d8e2308abea5 (diff) | |
| parent | 5ec252bbee0a643cf2c2f1877fbd8a2c83f1c641 (diff) | |
| download | numpy-0dc45ecc707766c6983eae9b65e2bf518c487dc7.tar.gz | |
Merge pull request #12285 from seibert/take_perf
ENH: array does not need to be writable to use as input to take
Diffstat (limited to 'numpy')
| -rw-r--r-- | numpy/core/src/multiarray/item_selection.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/src/multiarray/item_selection.c b/numpy/core/src/multiarray/item_selection.c index de54ca1b3..a7c6b14f4 100644 --- a/numpy/core/src/multiarray/item_selection.c +++ b/numpy/core/src/multiarray/item_selection.c @@ -45,7 +45,7 @@ PyArray_TakeFrom(PyArrayObject *self0, PyObject *indices0, int axis, indices = NULL; self = (PyArrayObject *)PyArray_CheckAxis(self0, &axis, - NPY_ARRAY_CARRAY); + NPY_ARRAY_CARRAY_RO); if (self == NULL) { return NULL; } |
