8000 Merge pull request #7253 from aukejw/stack_documentation_#7183 · numpy/numpy@f4cc58c · GitHub
[go: up one dir, main page]

Skip to content

Commit f4cc58c

Browse files
committed
Merge pull request #7253 from aukejw/stack_documentation_#7183
DOC: note in h/v/dstack points users to stack/concatenate
2 parents 5fe1f8f + 596460b commit f4cc58c

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

numpy/core/shape_base.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,10 @@ def vstack(tup):
184184
Take a sequence of arrays and stack them vertically to make a single
185185
array. Rebuild arrays divided by `vsplit`.
186186
187+
This function continues to be supported for backward compatibility, but
188+
you should prefer ``np.concatenate`` or ``np.stack``. The ``np.stack``
189+
function was added in NumPy 1.10.
190+
187191
Parameters
188192
----------
189193
tup : sequence of ndarrays
@@ -236,6 +240,10 @@ def hstack(tup):
236240
Take a sequence of arrays and stack them horizontally to make
237241
a single array. Rebuild arrays divided by `hsplit`.
238242
243+
This function continues to be supported for backward compatibility, but
244+
you should prefer ``np.concatenate`` or ``np.stack``. The ``np.stack``
245+
function was added in NumPy 1.10.
246+
239247
Parameters
240248
----------
241249
tup : sequence of ndarrays

numpy/lib/shape_base.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,10 @@ def dstack(tup):
325325
This is a simple way to stack 2D arrays (images) into a single
326326
3D array for processing.
327327
328+
This function continues to be supported for backward compatibility, but
329+
you should prefer ``np.concatenate`` or ``np.stack``. The ``np.stack``
330+
function was added in NumPy 1.10.
331+
328332
Parameters
329333
----------
330334
tup : sequence of arrays

0 commit comments

Comments
 (0)
0