NUMPY_API * Reshape */
| 298 | * Reshape |
| 299 | */ |
| 300 | NPY_NO_EXPORT PyObject * |
| 301 | PyArray_Reshape(PyArrayObject *self, PyObject *shape) |
| 302 | { |
| 303 | PyObject *ret; |
| 304 | PyArray_Dims newdims; |
| 305 | |
| 306 | if (!PyArray_IntpConverter(shape, &newdims)) { |
| 307 | return NULL; |
| 308 | } |
| 309 | ret = PyArray_Newshape(self, &newdims, NPY_CORDER); |
| 310 | npy_free_cache_dim_obj(newdims); |
| 311 | return ret; |
| 312 | } |
| 313 | |
| 314 | |
| 315 | static void |
no test coverage detected