From 84eeca630ec9c5bf580bc456035c87d8591c1389 Mon Sep 17 00:00:00 2001 From: Matthias Bussonnier Date: Fri, 3 Jun 2022 20:51:18 +0200 Subject: DIC: Misc RST reformatting. This contains various RST reformatting. One, moving `(C)` one line up, is specific to a bug in tree-sitter-rst that mis parses this section. Another is adding one black line for a similar reason where `..` is seen as section underline by tree-sitter-rst. This is some shuffling of section underline: try to be consitant, `=`, then `-`, then `~`, with this refactor there is also no more section that use backticks as underline. Note in particular that non-consitency of underline lead to a problem in datetime64 section where "weekmasks" (underlined with `-`) were actually a level-4 heading instead of a level 2 or 3 I guess, and thus were nested under the `busday_count()` section. You'll note also 2 formulas that are under double-quotes as they are not references. --- numpy/core/multiarray.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'numpy/core/multiarray.py') diff --git a/numpy/core/multiarray.py b/numpy/core/multiarray.py index ee88ce30b..8c14583e6 100644 --- a/numpy/core/multiarray.py +++ b/numpy/core/multiarray.py @@ -287,7 +287,7 @@ def inner(a, b): np.inner(a, b) = sum(a[:]*b[:]) - More generally, if `ndim(a) = r > 0` and `ndim(b) = s > 0`:: + More generally, if ``ndim(a) = r > 0`` and ``ndim(b) = s > 0``:: np.inner(a, b) = np.tensordot(a, b, axes=(-1,-1)) -- cgit v1.2.1