diff options
-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 + """)) |