You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The question means the total bytes consumed by the element of the array. In order to clear up the misunderstanding, it is suggested to revise the question stem.
Z.nbytes is more direct then Z.size * Z.itemsize.
BTW, 4 typos:
an hint -> a hint
of of -> of
every combinations -> every combination
a two dimensional -> a two-dimensional
The question means the total bytes consumed by the element of the array. In order to clear up the misunderstanding, it is suggested to revise the question stem.
Z.nbytes is more direct then Z.size * Z.itemsize.
BTW, 4 typos:
an hint -> a hint
of of -> of
every combinations -> every combination
a two dimensional -> a two-dimensional
References:
https://numpy.org/doc/stable/reference/generated/numpy.ndarray.nbytes.html
https://docs.python.org/3/library/sys.html#sys.getsizeof
The text was updated successfully, but these errors were encountered: