A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://numpy.org/devdocs/reference/generated/numpy.size.html below:

numpy.size — NumPy v2.4.dev0 Manual

numpy.size#
numpy.size(a, axis=None)[source]#

Return the number of elements along a given axis.

Parameters:
aarray_like

Input data.

axisNone or int or tuple of ints, optional

Axis or axes along which the elements are counted. By default, give the total number of elements.

Changed in version 2.4: Extended to accept multiple axes.

Returns:
element_countint

Number of elements along the specified axis.

Examples

>>> import numpy as np
>>> a = np.array([[1,2,3],[4,5,6]])
>>> np.size(a)
6
>>> np.size(a,axis=1)
3
>>> np.size(a,axis=0)
2
>>> np.size(a,axis=(0,1))
6

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4