| 253 | } |
| 254 | |
| 255 | Status SetNdarrayBase(PyArrayObject* arr, PyObject* base) { |
| 256 | if (PyArray_SetBaseObject(arr, base) == -1) { |
| 257 | // Error occurred, trust that SetBaseObject sets the error state |
| 258 | Py_XDECREF(base); |
| 259 | RETURN_IF_PYERROR(); |
| 260 | } |
| 261 | return Status::OK(); |
| 262 | } |
| 263 | |
| 264 | Status SetBufferBase(PyArrayObject* arr, const std::shared_ptr<Buffer>& buffer) { |
| 265 | PyObject* base; |
no test coverage detected