Movatterモバイル変換


[0]ホーム

URL:


SciPy

numpy.ndarray.size

ndarray.size

Number of elements in the array.

Equivalent tonp.prod(a.shape), i.e., the product of the array’sdimensions.

Examples

>>>x=np.zeros((3,5,2),dtype=np.complex128)>>>x.size30>>>np.prod(x.shape)30

Previous topic

numpy.ndarray.real

Next topic

numpy.ndarray.itemsize

  • © Copyright 2008-2009, The Scipy community.
  • Last updated on Jun 10, 2017.
  • Created usingSphinx 1.5.3.

[8]ページ先頭

©2009-2025 Movatter.jp