diff options
-rw-r--r-- | numpy/core/shape_base.py | 8 | ||||
-rw-r--r-- | numpy/lib/shape_base.py | 4 |
2 files changed, 12 insertions, 0 deletions
diff --git a/numpy/core/shape_base.py b/numpy/core/shape_base.py index 599b48d82..074be4b64 100644 --- a/numpy/core/shape_base.py +++ b/numpy/core/shape_base.py @@ -184,6 +184,10 @@ def vstack(tup): Take a sequence of arrays and stack them vertically to make a single array. Rebuild arrays divided by `vsplit`. + This function continues to be supported for backward compatibility, but + you should prefer ``np.concatenate`` or ``np.stack`` (keep in mind that + ``np.stack`` was added in numpy version 1.10). + Parameters ---------- tup : sequence of ndarrays @@ -236,6 +240,10 @@ def hstack(tup): Take a sequence of arrays and stack them horizontally to make a single array. Rebuild arrays divided by `hsplit`. + This function continues to be supported for backward compatibility, but + you should prefer ``np.concatenate`` or ``np.stack`` (keep in mind that + ``np.stack`` was added in numpy version 1.10). + Parameters ---------- tup : sequence of ndarrays diff --git a/numpy/lib/shape_base.py b/numpy/lib/shape_base.py index ffbe56721..88ed065e1 100644 --- a/numpy/lib/shape_base.py +++ b/numpy/lib/shape_base.py @@ -325,6 +325,10 @@ def dstack(tup): This is a simple way to stack 2D arrays (images) into a single 3D array for processing. + This function continues to be supported for backward compatibility, but + you should prefer ``np.concatenate`` or ``np.stack`` (keep in mind that + ``np.stack`` was added in numpy version 1.10). + Parameters ---------- tup : sequence of arrays |