diff options
Diffstat (limited to 'numpy/core/oldnumeric.py')
-rw-r--r-- | numpy/core/oldnumeric.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/numpy/core/oldnumeric.py b/numpy/core/oldnumeric.py index 4531a1056..7778b7c10 100644 --- a/numpy/core/oldnumeric.py +++ b/numpy/core/oldnumeric.py @@ -177,13 +177,13 @@ def take(a, indices, axis=0): result = _wrapit(a, 'take', indices, axis) return result -def reshape(a, newshape): +def reshape(a, newshape, fortran=False): """Change the shape of a to newshape. Return a new view object. """ try: - result = a.reshape(newshape) + result = a.reshape(newshape, fortran=fortran) except AttributeError: - result = _wrapit(a, 'reshape', newshape) + result = _wrapit(a, 'reshape', newshape, fortran=fortran) return result def choose(a, choices): |