| 463 | } |
| 464 | |
| 465 | static void |
| 466 | raise_reshape_size_mismatch(PyArray_Dims *newshape, PyArrayObject *arr) |
| 467 | { |
| 468 | PyObject *tmp = convert_shape_to_string(newshape->len, newshape->ptr, ""); |
| 469 | if (tmp != NULL) { |
| 470 | PyErr_Format(PyExc_ValueError, |
| 471 | "cannot reshape array of size %zd into shape %S", |
| 472 | PyArray_SIZE(arr), tmp); |
| 473 | Py_DECREF(tmp); |
| 474 | } |
| 475 | } |
| 476 | |
| 477 | static int |
| 478 | _fix_unknown_dimension(PyArray_Dims *newshape, PyArrayObject *arr) |
no test coverage detected