diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2016-03-12 13:04:09 -0700 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2016-03-12 13:04:09 -0700 |
commit | 5b9162853bab2ef0cc8e71576f5f3c754d0a315c (patch) | |
tree | 2335d4aecde79c0dd807f2dad6c2afba3ddccd0d /numpy/lib/twodim_base.py | |
parent | f98b59e427f26c699de9412a528be685cbcde405 (diff) | |
parent | e7de401f5c9634a2a63eb8f44f2193be1a946191 (diff) | |
download | numpy-5b9162853bab2ef0cc8e71576f5f3c754d0a315c.tar.gz |
Merge pull request #7346 from erensezener/generalized_flip
Generalized flip
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]) |