diff options
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: |