diff options
author | Jonas Rauber <jonasrauber@users.noreply.github.com> | 2018-03-15 15:00:43 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-15 15:00:43 +0100 |
commit | 626d20ed537b333e39b62c337de431f8d3ee4df5 (patch) | |
tree | 7db411b2fb514ab74a5a08441a2a12f58352aafe /numpy/add_newdocs.py | |
parent | 4bbf48255a3cbd8a4c707867818d0277437bf202 (diff) | |
download | numpy-626d20ed537b333e39b62c337de431f8d3ee4df5.tar.gz |
fixed order of notes and examples
Diffstat (limited to 'numpy/add_newdocs.py')
-rw-r--r-- | numpy/add_newdocs.py | 16 |
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 + """)) |