Movatterモバイル変換


[0]ホーム

URL:


SciPy

numpy.ma.masked_array.all

masked_array.all(axis=None,out=None,keepdims=<class numpy._globals._NoValue>)[source]

Returns True if all elements evaluate to True.

The output array is masked where all the values along the given axisare masked: if the output would have been a scalar and that all thevalues are masked, then the output ismasked.

Refer tonumpy.all for full documentation.

See also

ndarray.all
corresponding function for ndarrays
numpy.all
equivalent function

Examples

>>>np.ma.array([1,2,3]).all()True>>>a=np.ma.array([1,2,3],mask=True)>>>(a.all()isnp.ma.masked)True
  • © Copyright 2008-2009, The Scipy community.
  • Last updated on Jun 10, 2017.
  • Created usingSphinx 1.5.3.

[8]ページ先頭

©2009-2025 Movatter.jp