summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Rauber <jonasrauber@users.noreply.github.com>2018-03-15 15:00:43 +0100
committerGitHub <noreply@github.com>2018-03-15 15:00:43 +0100
commit626d20ed537b333e39b62c337de431f8d3ee4df5 (patch)
tree7db411b2fb514ab74a5a08441a2a12f58352aafe
parent4bbf48255a3cbd8a4c707867818d0277437bf202 (diff)
downloadpython-numpy-626d20ed537b333e39b62c337de431f8d3ee4df5.tar.gz
python-numpy-626d20ed537b333e39b62c337de431f8d3ee4df5.tar.bz2
python-numpy-626d20ed537b333e39b62c337de431f8d3ee4df5.zip
fixed order of notes and examples
-rw-r--r--numpy/add_newdocs.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/numpy/add_newdocs.py b/numpy/add_newdocs.py
index 6d0cfb594..316b38e77 100644
--- a/numpy/add_newdocs.py
+++ b/numpy/add_newdocs.py
@@ -3063,14 +3063,6 @@ add_newdoc('numpy.core.multiarray', 'ndarray', ('size',
Equal to ``np.prod(a.shape)``, i.e., the product of the array's
dimensions.
- Examples
- --------
- >>> x = np.zeros((3, 5, 2), dtype=np.complex128)
- >>> x.size
- 30
- >>> np.prod(x.shape)
- 30
-
Notes
-----
`a.size` returns a standard arbitrary precision Python integer. This
@@ -3079,6 +3071,14 @@ add_newdoc('numpy.core.multiarray', 'ndarray', ('size',
of ``np.int_``), and may be relevant if the value is used further in
calculations that may overflow a fixed size integer type.
+ Examples
+ --------
+ >>> x = np.zeros((3, 5, 2), dtype=np.complex128)
+ >>> x.size
+ 30
+ >>> np.prod(x.shape)
+ 30
+
"""))