From eca4d03860d33a4e245c18c97b2867548f0bd11c Mon Sep 17 00:00:00 2001 From: Mark Wiebe Date: Wed, 19 Jan 2011 16:08:26 -0800 Subject: ENH: ufunc: Add the main loop selection/type-determination mechanism --- doc/source/reference/c-api.array.rst | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'doc/source/reference/c-api.array.rst') 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 -- cgit v1.2.1