From 14bb26753df4ca4ef42ecd830699433ed781cf9f Mon Sep 17 00:00:00 2001 From: takanori-pskq Date: Sat, 24 Oct 2020 13:49:37 +0900 Subject: DOC: Fix some references --- doc/source/reference/arrays.ndarray.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'doc/source/reference/arrays.ndarray.rst') diff --git a/doc/source/reference/arrays.ndarray.rst b/doc/source/reference/arrays.ndarray.rst index 689240c7d..405ae8f6a 100644 --- a/doc/source/reference/arrays.ndarray.rst +++ b/doc/source/reference/arrays.ndarray.rst @@ -469,7 +469,7 @@ Comparison operators: ndarray.__eq__ ndarray.__ne__ -Truth value of an array (:func:`bool()`): +Truth value of an array (:class:`bool() `): .. autosummary:: :toctree: generated/ @@ -604,9 +604,9 @@ Container customization: (see :ref:`Indexing `) ndarray.__setitem__ ndarray.__contains__ -Conversion; the operations :func:`int()`, :func:`float()` and -:func:`complex()`. -. They work only on arrays that have one element in them +Conversion; the operations :class:`int() `, +:class:`float() ` and :class:`complex() `. +They work only on arrays that have one element in them and return the appropriate scalar. .. autosummary:: -- cgit v1.2.1 From bc90452a095424bf837736a8615407ab4f1dd649 Mon Sep 17 00:00:00 2001 From: takanori-pskq Date: Sun, 25 Oct 2020 10:07:17 +0900 Subject: DOC: Fix the references for ``__array_*__`` --- doc/source/reference/arrays.ndarray.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'doc/source/reference/arrays.ndarray.rst') diff --git a/doc/source/reference/arrays.ndarray.rst b/doc/source/reference/arrays.ndarray.rst index 405ae8f6a..6b805904a 100644 --- a/doc/source/reference/arrays.ndarray.rst +++ b/doc/source/reference/arrays.ndarray.rst @@ -259,10 +259,10 @@ Array interface .. seealso:: :ref:`arrays.interface`. -========================== =================================== -:obj:`__array_interface__` Python-side of the array interface -:obj:`__array_struct__` C-side of the array interface -========================== =================================== +================================== =================================== +:obj:`~object.__array_interface__` Python-side of the array interface +:obj:`~object.__array_struct__` C-side of the array interface +================================== =================================== :mod:`ctypes` foreign function interface ---------------------------------------- -- cgit v1.2.1 From d212ee4ceeb0a1ff8dba1c6d9e0cc54360e81a94 Mon Sep 17 00:00:00 2001 From: takanori-pskq Date: Mon, 26 Oct 2020 14:11:44 +0900 Subject: DOC: Fix some references --- doc/source/reference/arrays.ndarray.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'doc/source/reference/arrays.ndarray.rst') diff --git a/doc/source/reference/arrays.ndarray.rst b/doc/source/reference/arrays.ndarray.rst index 6b805904a..191367058 100644 --- a/doc/source/reference/arrays.ndarray.rst +++ b/doc/source/reference/arrays.ndarray.rst @@ -1,11 +1,11 @@ +.. currentmodule:: numpy + .. _arrays.ndarray: ****************************************** The N-dimensional array (:class:`ndarray`) ****************************************** -.. currentmodule:: numpy - An :class:`ndarray` is a (usually fixed-size) multidimensional container of items of the same type and size. The number of dimensions and items in an array is defined by its :attr:`shape `, -- cgit v1.2.1