diff options
author | lzkelley <lkelley@cfa.harvard.edu> | 2017-12-15 14:05:02 -0500 |
---|---|---|
committer | lzkelley <lkelley@cfa.harvard.edu> | 2017-12-17 14:58:43 -0500 |
commit | 4e112ef679284d931d71cf8f4b20acf0f0254cf0 (patch) | |
tree | 5609d48bc958d3950782be72e4e2a48e0c8fb294 /numpy/ma/extras.py | |
parent | 9d054c141b084546810486f91e763f3eb89af633 (diff) | |
download | numpy-4e112ef679284d931d71cf8f4b20acf0f0254cf0.tar.gz |
ENH: added masked version of 'numpy.stack' with tests.
Uses '_fromnxfunction_seq' just like 'vstack', 'hstack', etc.
Added release note to 1.15.0.
Diffstat (limited to 'numpy/ma/extras.py')
-rw-r--r-- | numpy/ma/extras.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/numpy/ma/extras.py b/numpy/ma/extras.py index 323fbce38..360d50d8a 100644 --- a/numpy/ma/extras.py +++ b/numpy/ma/extras.py @@ -19,7 +19,7 @@ __all__ = [ 'hsplit', 'hstack', 'isin', 'in1d', 'intersect1d', 'mask_cols', 'mask_rowcols', 'mask_rows', 'masked_all', 'masked_all_like', 'median', 'mr_', 'notmasked_contiguous', 'notmasked_edges', 'polyfit', 'row_stack', - 'setdiff1d', 'setxor1d', 'unique', 'union1d', 'vander', 'vstack', + 'setdiff1d', 'setxor1d', 'stack', 'unique', 'union1d', 'vander', 'vstack', ] import itertools @@ -357,6 +357,7 @@ vstack = row_stack = _fromnxfunction_seq('vstack') hstack = _fromnxfunction_seq('hstack') column_stack = _fromnxfunction_seq('column_stack') dstack = _fromnxfunction_seq('dstack') +stack = _fromnxfunction_seq('stack') hsplit = _fromnxfunction_single('hsplit') |