summaryrefslogtreecommitdiff
path: root/numpy/add_newdocs.py
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2010-04-25 09:57:19 +0000
committerCharles Harris <charlesr.harris@gmail.com>2010-04-25 09:57:19 +0000
commit8088b49b100d0933cbd71a83e5b6d28f8b38c222 (patch)
treea3e9e0c8f6e2aebe4b868c091593155286792b0d /numpy/add_newdocs.py
parente8699dd5cd3e018250393d989aa1146d89ad9b72 (diff)
downloadnumpy-8088b49b100d0933cbd71a83e5b6d28f8b38c222.tar.gz
ENH: Remove order keyword from ndarray.resize. This is pretty much
Scott Sinclair's patch from ticket #840.
Diffstat (limited to 'numpy/add_newdocs.py')
-rw-r--r--numpy/add_newdocs.py20
1 files changed, 2 insertions, 18 deletions
diff --git a/numpy/add_newdocs.py b/numpy/add_newdocs.py
index b6c5853e0..350461208 100644
--- a/numpy/add_newdocs.py
+++ b/numpy/add_newdocs.py
@@ -2851,7 +2851,7 @@ add_newdoc('numpy.core.multiarray', 'ndarray', ('reshape',
add_newdoc('numpy.core.multiarray', 'ndarray', ('resize',
"""
- a.resize(new_shape, refcheck=True, order=False)
+ a.resize(new_shape, refcheck=True)
Change shape and size of array in-place.
@@ -2861,8 +2861,6 @@ add_newdoc('numpy.core.multiarray', 'ndarray', ('resize',
Shape of resized array.
refcheck : bool, optional
If False, reference count will not be checked. Default is True.
- order : bool, do not use.
- A SystemError is raised when this parameter is specified.
Returns
-------
@@ -2901,27 +2899,13 @@ add_newdoc('numpy.core.multiarray', 'ndarray', ('resize',
Shrinking an array: array is flattened (in the order that the data are
stored in memory), resized, and reshaped:
- >>> a = np.array([[0, 1], [2, 3]])
- >>> print a.flags
- C_CONTIGUOUS : True
- F_CONTIGUOUS : False
- OWNDATA : True
- WRITEABLE : True
- ALIGNED : True
- UPDATEIFCOPY : False
+ >>> a = np.array([[0, 1], [2, 3]], order='C')
>>> a.resize((2, 1))
>>> a
array([[0],
[1]])
>>> a = np.array([[0, 1], [2, 3]], order='F')
- >>> print a.flags
- C_CONTIGUOUS : False
- F_CONTIGUOUS : True
- OWNDATA : True
- WRITEABLE : True
- ALIGNED : True
- UPDATEIFCOPY : False
>>> a.resize((2, 1))
>>> a
array([[0],