summaryrefslogtreecommitdiff
path: root/doc/source/reference/c-api.array.rst
diff options
context:
space:
mode:
authorMark Wiebe <mwwiebe@gmail.com>2011-01-19 16:08:26 -0800
committerMark Wiebe <mwwiebe@gmail.com>2011-01-19 16:08:26 -0800
commiteca4d03860d33a4e245c18c97b2867548f0bd11c (patch)
tree3b7b5e0bc42d1bbe5353b5e89285e223922539e7 /doc/source/reference/c-api.array.rst
parent3637741aa438b1a17023d49379420891132d996c (diff)
downloadnumpy-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.rst5
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