diff options
Diffstat (limited to 'doc/source/reference/c-api.array.rst')
-rw-r--r-- | doc/source/reference/c-api.array.rst | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/source/reference/c-api.array.rst b/doc/source/reference/c-api.array.rst index 1b109258a..a8ecf7a1d 100644 --- a/doc/source/reference/c-api.array.rst +++ b/doc/source/reference/c-api.array.rst @@ -851,6 +851,11 @@ Converting data types additional support for size checking if *fromtype* and *totype* are :cdata:`NPY_STRING` or :cdata:`NPY_UNICODE`. +.. cfunction:: int PyArray_CanCastTypeTo(PyArray_Descr* fromtype, PyArray_Descr* totype, NPY_CASTING) + + This is equivalent to PyArray_CanCastTo, but adds a parameter *casting* + specifying what casts may be accepted. + .. cfunction:: int PyArray_CanCastArrayTo(PyArrayObject* arr, PyArray_Descr* totype, NPY_CASTING casting) Returns non-zero if *arr* can be cast to *totype* according |