diff options
author | Travis Oliphant <oliphant@enthought.com> | 2005-12-28 03:17:55 +0000 |
---|---|---|
committer | Travis Oliphant <oliphant@enthought.com> | 2005-12-28 03:17:55 +0000 |
commit | 922f7cf07fcce95f510222b464cdc757f40ef57f (patch) | |
tree | ddc75cce90be2bff70a0c2863c1b4996f1aadf34 /scipy/base/twodim_base.py | |
parent | 4b61fd0dc145083b566028edc691c5f2d1d5936f (diff) | |
download | numpy-922f7cf07fcce95f510222b464cdc757f40ef57f.tar.gz |
Added an mlab so that there is one file to replace the old MLab functionality.
Diffstat (limited to 'scipy/base/twodim_base.py')
-rw-r--r-- | scipy/base/twodim_base.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scipy/base/twodim_base.py b/scipy/base/twodim_base.py index 3e7e392e8..b21532ea6 100644 --- a/scipy/base/twodim_base.py +++ b/scipy/base/twodim_base.py @@ -36,9 +36,9 @@ def rot90(m, k=1): raise ValueError, "Input must >= 2-d." k = k % 4 if k == 0: return m - elif k == 1: return transpose(fliplr(m)) + elif k == 1: return fliplr(m).transpose() elif k == 2: return fliplr(flipud(m)) - else: return fliplr(transpose(m)) # k==3 + else: return fliplr(m.transpose()) # k==3 def eye(N, M=None, k=0, dtype=int_): """ eye returns a N-by-M 2-d array where the k-th diagonal is all ones, |