From 155ee365c56f519e150ccfe5c29ef19b0a51f1ca Mon Sep 17 00:00:00 2001 From: Charles Harris Date: Mon, 17 Oct 2016 16:57:40 -0600 Subject: DOC: Further fixes for PyArray_{Max, Min, Ptp} documentation. [ci skip] --- doc/source/reference/c-api.array.rst | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (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 12841a312..3574282a4 100644 --- a/doc/source/reference/c-api.array.rst +++ b/doc/source/reference/c-api.array.rst @@ -1919,20 +1919,24 @@ Calculation .. c:function:: PyObject* PyArray_Max(PyArrayObject* self, int axis, PyArrayObject* out) - Equivalent to :meth:`ndarray.max` (*self*, *axis*). Return the largest - element of *self* along the given *axis*. - If it return only 1 element, return a numpy scalar, not an ndarray. + Equivalent to :meth:`ndarray.max` (*self*, *axis*). Returns the largest + element of *self* along the given *axis*. When the result is a single + element, returns a numpy scalar instead of an ndarray. .. c:function:: PyObject* PyArray_Min(PyArrayObject* self, int axis, PyArrayObject* out) Equivalent to :meth:`ndarray.min` (*self*, *axis*). Return the smallest - element of *self* along the given *axis*. + element of *self* along the given *axis*. When the result is a single + element, returns a numpy scalar instead of an ndarray. + .. c:function:: PyObject* PyArray_Ptp(PyArrayObject* self, int axis, PyArrayObject* out) Equivalent to :meth:`ndarray.ptp` (*self*, *axis*). Return the difference between the largest element of *self* along *axis* and the - smallest element of *self* along *axis*. + smallest element of *self* along *axis*. When the result is a single + element, returns a numpy scalar instead of an ndarray. + -- cgit v1.2.1