diff options
author | Marc-Alexandre Côté <marc.cote.19@gmail.com> | 2014-02-17 13:23:52 -0500 |
---|---|---|
committer | Marc-Alexandre Côté <marc.cote.19@gmail.com> | 2014-02-17 13:23:52 -0500 |
commit | 1ca2c00862a08b0addf800748b30162e858e0a4c (patch) | |
tree | cbe12970a17e51cad8b8880e76238d7d4c298095 /doc/source/reference/c-api.array.rst | |
parent | 297f54b28e09666ef6a514498c6949aacd4494d5 (diff) | |
download | numpy-1ca2c00862a08b0addf800748b30162e858e0a4c.tar.gz |
Update c-api.array.rst
Add a note explaining the ``out`` parameter of some functions.
Diffstat (limited to 'doc/source/reference/c-api.array.rst')
-rw-r--r-- | doc/source/reference/c-api.array.rst | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/doc/source/reference/c-api.array.rst b/doc/source/reference/c-api.array.rst index fcc4e6915..351b4238e 100644 --- a/doc/source/reference/c-api.array.rst +++ b/doc/source/reference/c-api.array.rst @@ -1877,6 +1877,18 @@ Calculation Equivalent to :meth:`ndarray.argmin` (*self*, *axis*). Return the index of the smallest element of *self* along *axis*. + + + +.. note:: + + The out argument specifies where to place the result. If out is + NULL, then the output array is created, otherwise the output is + placed in out which must be the correct size and type. A new + reference to the ouput array is always returned even when out + is not NULL. The caller of the routine has the responsability + to ``DECREF`` out if not NULL or a memory-leak will occur. + .. cfunction:: PyObject* PyArray_Max(PyArrayObject* self, int axis, PyArrayObject* out) Equivalent to :meth:`ndarray.max` (*self*, *axis*). Return the largest |