diff options
author | Stefan van der Walt <stefan@sun.ac.za> | 2008-04-25 17:31:19 +0000 |
---|---|---|
committer | Stefan van der Walt <stefan@sun.ac.za> | 2008-04-25 17:31:19 +0000 |
commit | bf6e7a7edb1c5173f1a3eb343fbd9e7b25445073 (patch) | |
tree | 6732d6a0ded0f94b15f6163ef23afd215a173031 /numpy/core/defmatrix.py | |
parent | 954e1411c794fa570657f2614912468fe1eabe27 (diff) | |
download | numpy-bf6e7a7edb1c5173f1a3eb343fbd9e7b25445073.tar.gz |
Revert x[0][0] hack.
Diffstat (limited to 'numpy/core/defmatrix.py')
-rw-r--r-- | numpy/core/defmatrix.py | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/numpy/core/defmatrix.py b/numpy/core/defmatrix.py index 77e90acbd..ca7240757 100644 --- a/numpy/core/defmatrix.py +++ b/numpy/core/defmatrix.py @@ -225,13 +225,6 @@ class matrix(N.ndarray): def __getitem__(self, index): self._getitem = True - # If indexing by scalar, check whether we are indexing into - # a vector, and then return the corresponding element - if N.isscalar(index) and (1 in self.shape): - index = [index,index] - index[list(self.shape).index(1)] = 0 - index = tuple(index) - try: out = N.ndarray.__getitem__(self, index) finally: |