diff options
Diffstat (limited to 'numpy/add_newdocs.py')
-rw-r--r-- | numpy/add_newdocs.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/numpy/add_newdocs.py b/numpy/add_newdocs.py index 38da1f0b3..535b372f9 100644 --- a/numpy/add_newdocs.py +++ b/numpy/add_newdocs.py @@ -3060,8 +3060,10 @@ add_newdoc('numpy.core.multiarray', 'ndarray', ('size', """ Number of elements in the array. - Equivalent to ``np.prod(a.shape)``, i.e., the product of the array's - dimensions. + Equal to ``np.prod(a.shape)``, i.e., the product of the array's + dimensions, except that ``size`` returns an instance of ``int`` + whereas ``np.prod(a.shape)`` returns an instance of ``np.int_`` + (e.g. ``np.int64``). Examples -------- |