diff options
author | Eren Sezener <erensezener@gmail.com> | 2016-02-26 13:24:49 +0100 |
---|---|---|
committer | Denis Alevi <mail@denisalevi.de> | 2016-03-12 19:07:43 +0100 |
commit | e7de401f5c9634a2a63eb8f44f2193be1a946191 (patch) | |
tree | 24e9ca5254eb80f9a1fa92e1fe2db089737a087c /numpy/lib/twodim_base.py | |
parent | 1373aa79fe9e0563d6d05402c08dac08a329795d (diff) | |
download | numpy-e7de401f5c9634a2a63eb8f44f2193be1a946191.tar.gz |
ENH: Add generalized flip function and its tests
Diffstat (limited to 'numpy/lib/twodim_base.py')
-rw-r--r-- | numpy/lib/twodim_base.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/numpy/lib/twodim_base.py b/numpy/lib/twodim_base.py index 6728ab7ec..aefe8d64b 100644 --- a/numpy/lib/twodim_base.py +++ b/numpy/lib/twodim_base.py @@ -57,7 +57,7 @@ def fliplr(m): Notes ----- - Equivalent to A[:,::-1]. Requires the array to be at least 2-D. + Equivalent to m[:,::-1]. Requires the array to be at least 2-D. Examples -------- @@ -72,7 +72,7 @@ def fliplr(m): [ 3., 0., 0.]]) >>> A = np.random.randn(2,3,5) - >>> np.all(np.fliplr(A)==A[:,::-1,...]) + >>> np.all(np.fliplr(A) == A[:,::-1,...]) True """ @@ -107,7 +107,7 @@ def flipud(m): Notes ----- - Equivalent to ``A[::-1,...]``. + Equivalent to ``m[::-1,...]``. Does not require the array to be two-dimensional. Examples @@ -123,7 +123,7 @@ def flipud(m): [ 1., 0., 0.]]) >>> A = np.random.randn(2,3,5) - >>> np.all(np.flipud(A)==A[::-1,...]) + >>> np.all(np.flipud(A) == A[::-1,...]) True >>> np.flipud([1,2]) |