Movatterモバイル変換


[0]ホーム

URL:


SciPy

numpy.ma.MaskedArray.fill

MaskedArray.fill(value)

Fill the array with a scalar value.

Parameters:
value:scalar

All elements ofa will be assigned this value.

Examples

>>>a=np.array([1,2])>>>a.fill(0)>>>aarray([0, 0])>>>a=np.empty(2)>>>a.fill(1)>>>aarray([ 1.,  1.])

Previous topic

numpy.ma.MaskedArray.diagonal

Next topic

numpy.ma.MaskedArray.item

Quick search

  • © Copyright 2008-2018, The SciPy community.
  • Last updated on Jul 24, 2018.
  • Created usingSphinx 1.6.6.

[8]ページ先頭

©2009-2025 Movatter.jp