Skip to content

Commit 997ad0b

Browse files
committed
Add cross references to Scipy
1 parent 8725387 commit 997ad0b

File tree

2 files changed

+13
-10
lines changed

2 files changed

+13
-10
lines changed

docs/source/conf.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,7 @@ def setup(app):
4242

4343
# Automatically link to numpy doc
4444
extensions += ['sphinx.ext.intersphinx']
45-
intersphinx_mapping = { "numpy": ("https://numpy.org/doc/stable/", None), }
45+
intersphinx_mapping = {
46+
"numpy": ("https://numpy.org/doc/stable/", None),
47+
"scipy": ("https://docs.scipy.org/doc/scipy/reference", None),
48+
}

docs/source/numpy.rst

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -582,15 +582,15 @@ xtensor universal functions are provided for a large set number of mathematical
582582

583583
**Error and gamma functions:**
584584

585-
+-----------------------------------------------+-----------------------------------------------+
586-
| Python 3 - numpy | C++ 14 - xtensor |
587-
+===============================================+===============================================+
588-
| ``scipy.special.erf(a)`` | ``xt::erf(a)`` |
589-
+-----------------------------------------------+-----------------------------------------------+
590-
| ``scipy.special.gamma(a)`` | ``xt::tgamma(a)`` |
591-
+-----------------------------------------------+-----------------------------------------------+
592-
| ``scipy.special.gammaln(a)`` | ``xt::lgamma(a)`` |
593-
+-----------------------------------------------+-----------------------------------------------+
585+
+--------------------------------------------------------------------+--------------------------------------------------------------------+
586+
| Python 3 - numpy | C++ 14 - xtensor |
587+
+====================================================================+====================================================================+
588+
| :any:`scipy.special.erf(a) <scipy.special.erf>` | ``xt::erf(a)`` |
589+
+--------------------------------------------------------------------+--------------------------------------------------------------------+
590+
| :any:`scipy.special.gamma(a) <scipy.special.gamma>` | ``xt::tgamma(a)`` |
591+
+--------------------------------------------------------------------+--------------------------------------------------------------------+
592+
| :any:`scipy.special.gammaln(a) <scipy.special.gammaln>` | ``xt::lgamma(a)`` |
593+
+--------------------------------------------------------------------+--------------------------------------------------------------------+
594594

595595
**Classification functions:**
596596

0 commit comments

Comments
 (0)