Movatterモバイル変換


[0]ホーム

URL:


SciPy

numpy.matrix.fill

matrix.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.matrix.dumps

Next topic

numpy.matrix.flatten

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

[8]ページ先頭

©2009-2025 Movatter.jp