summaryrefslogtreecommitdiff
path: root/numpy/lib
diff options
context:
space:
mode:
authormelissawm <melissawm.github@gmail.com>2022-10-11 17:23:29 -0300
committermelissawm <melissawm@gmail.com>2022-10-11 20:08:37 -0300
commit6fac305a8b62e40aa7a353d4cf72688939c0e0a4 (patch)
treedecee175a52111e4aa23f823d6121ed4812d03a8 /numpy/lib
parent5c427d6a597f62352e9baf870e1b2edde58bee45 (diff)
downloadnumpy-6fac305a8b62e40aa7a353d4cf72688939c0e0a4.tar.gz
DOC: Improve how-to-partition contents.
Also add links to this document from the functions' docstrings.
Diffstat (limited to 'numpy/lib')
-rw-r--r--numpy/lib/function_base.py1
-rw-r--r--numpy/lib/index_tricks.py2
2 files changed, 3 insertions, 0 deletions
diff --git a/numpy/lib/function_base.py b/numpy/lib/function_base.py
index 1a840669c..1cd5c92f2 100644
--- a/numpy/lib/function_base.py
+++ b/numpy/lib/function_base.py
@@ -4943,6 +4943,7 @@ def meshgrid(*xi, copy=True, sparse=False, indexing='xy'):
mgrid : Construct a multi-dimensional "meshgrid" using indexing notation.
ogrid : Construct an open multi-dimensional "meshgrid" using indexing
notation.
+ how-to-index
Examples
--------
diff --git a/numpy/lib/index_tricks.py b/numpy/lib/index_tricks.py
index e74553de4..95d5e3ede 100644
--- a/numpy/lib/index_tricks.py
+++ b/numpy/lib/index_tricks.py
@@ -234,6 +234,7 @@ class MGridClass(nd_grid):
ogrid : like mgrid but returns open (not fleshed out) mesh grids
meshgrid: return coordinate matrices from coordinate vectors
r_ : array concatenator
+ :ref:`how-to-partition`
Examples
--------
@@ -286,6 +287,7 @@ class OGridClass(nd_grid):
mgrid : like `ogrid` but returns dense (or fleshed out) mesh grids
meshgrid: return coordinate matrices from coordinate vectors
r_ : array concatenator
+ :ref:`how-to-partition`
Examples
--------