From 512a820c6e02dfecb757bc5b01397ff8168847dc Mon Sep 17 00:00:00 2001 From: auke Date: Fri, 5 Feb 2016 09:31:13 +0100 Subject: [PATCH 1/2] DOC: add vstack, hstack, dstack reference to stack documentation. --- numpy/core/shape_base.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/numpy/core/shape_base.py b/numpy/core/shape_base.py index 599b48d82b50..04a34ed8fa58 100644 --- a/numpy/core/shape_base.py +++ b/numpy/core/shape_base.py @@ -304,6 +304,11 @@ def stack(arrays, axis=0): See Also -------- concatenate : Join a sequence of arrays along an existing axis. + vstack : Stack arrays in sequence vertically, along the existing row axis. + hstack : Stack arrays in sequence horizontally, along the existing + column axis. + dstack : Stack arrays in sequence depth wise, along the existing + third axis. split : Split array into a list of multiple sub-arrays of equal size. Examples From 735182ca4a48ae9ade7b4514e31e50069a0c2b32 Mon Sep 17 00:00:00 2001 From: auke Date: Fri, 5 Feb 2016 14:48:54 +0100 Subject: [PATCH 2/2] DOC: changed 'depth wise' to 'depthwise', 'the existing' to 'an existing' --- numpy/core/shape_base.py | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/numpy/core/shape_base.py b/numpy/core/shape_base.py index 04a34ed8fa58..646ee0e47eac 100644 --- a/numpy/core/shape_base.py +++ b/numpy/core/shape_base.py @@ -199,7 +199,7 @@ def vstack(tup): -------- stack : Join a sequence of arrays along a new axis. hstack : Stack arrays in sequence horizontally (column wise). - dstack : Stack arrays in sequence depth wise (along third dimension). + dstack : Stack arrays in sequence depthwise (along third dimension). concatenate : Join a sequence of arrays along an existing axis. vsplit : Split array into a list of multiple sub-arrays vertically. @@ -250,7 +250,7 @@ def hstack(tup): -------- stack : Join a sequence of arrays along a new axis. vstack : Stack arrays in sequence vertically (row wise). - dstack : Stack arrays in sequence depth wise (along third axis). + dstack : Stack arrays in sequence depthwise (along third axis). concatenate : Join a sequence of arrays along an existing axis. hsplit : Split array along second axis. @@ -304,11 +304,9 @@ def stack(arrays, axis=0): See Also -------- concatenate : Join a sequence of arrays along an existing axis. - vstack : Stack arrays in sequence vertically, along the existing row axis. - hstack : Stack arrays in sequence horizontally, along the existing - column axis. - dstack : Stack arrays in sequence depth wise, along the existing - third axis. + vstack : Stack arrays vertically, along an existing row axis. + hstack : Stack arrays horizontally, along an existing column axis. + dstack : Stack arrays depthwise, along an existing third axis. split : Split array into a list of multiple sub-arrays of equal size. Examples