summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatti Picus <matti.picus@gmail.com>2022-04-20 07:19:02 +0300
committerGitHub <noreply@github.com>2022-04-20 07:19:02 +0300
commitdc5aba5f04b7a59b49a6ffd4b635ba3d28de1469 (patch)
tree613fffccaca35b6165d0ad391e47cf9757b099a7
parent55aacc70cf6fd627fff3642538fa5e3b12dd7111 (diff)
parent5f295a557f7193c5a3d3c3cc1fbee9b1fefef2b3 (diff)
downloadnumpy-dc5aba5f04b7a59b49a6ffd4b635ba3d28de1469.tar.gz
Merge pull request #21032 from jon-deng/fix-sphinx-doc-errors
DOC: fix sphinx errors due to np.emath references
-rw-r--r--doc/source/reference/routines.emath.rst8
-rw-r--r--numpy/core/code_generators/ufunc_docstrings.py2
2 files changed, 5 insertions, 5 deletions
diff --git a/doc/source/reference/routines.emath.rst b/doc/source/reference/routines.emath.rst
index c0c5b61fc..8ff712cb4 100644
--- a/doc/source/reference/routines.emath.rst
+++ b/doc/source/reference/routines.emath.rst
@@ -1,9 +1,9 @@
-Mathematical functions with automatic domain (:mod:`numpy.emath`)
-***********************************************************************
+Mathematical functions with automatic domain
+********************************************
.. currentmodule:: numpy
-.. note:: :mod:`numpy.emath` is a preferred alias for :mod:`numpy.lib.scimath`,
+.. note:: :mod:`numpy.emath` is a preferred alias for ``numpy.lib.scimath``,
available after :mod:`numpy` is imported.
-.. automodule:: numpy.lib.scimath
+.. automodule:: numpy.emath
diff --git a/numpy/core/code_generators/ufunc_docstrings.py b/numpy/core/code_generators/ufunc_docstrings.py
index ba3a3a188..24b707a12 100644
--- a/numpy/core/code_generators/ufunc_docstrings.py
+++ b/numpy/core/code_generators/ufunc_docstrings.py
@@ -3817,7 +3817,7 @@ add_newdoc('numpy.core.umath', 'sqrt',
See Also
--------
- lib.scimath.sqrt
+ emath.sqrt
A version which returns complex numbers when given negative reals.
Note: 0.0 and -0.0 are handled differently for complex inputs.