diff options
author | Mark Wiebe <mwwiebe@gmail.com> | 2011-01-19 16:08:26 -0800 |
---|---|---|
committer | Mark Wiebe <mwwiebe@gmail.com> | 2011-01-19 16:08:26 -0800 |
commit | eca4d03860d33a4e245c18c97b2867548f0bd11c (patch) | |
tree | 3b7b5e0bc42d1bbe5353b5e89285e223922539e7 /doc/source/reference/c-api.array.rst | |
parent | 3637741aa438b1a17023d49379420891132d996c (diff) | |
download | numpy-eca4d03860d33a4e245c18c97b2867548f0bd11c.tar.gz |
ENH: ufunc: Add the main loop selection/type-determination mechanism
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 |