Movatterモバイル変換


[0]ホーム

URL:


SciPy

numpy.isreal

numpy.isreal(x)[source]

Returns a bool array, where True if input element is real.

If element has complex type with zero complex part, the return valuefor that element is True.

Parameters:
x:array_like

Input array.

Returns:
out:ndarray, bool

Boolean array of same shape asx.

See also

iscomplex

isrealobj
Return True if x is not a complex type.

Examples

>>>np.isreal([1+1j,1+0j,4.5,3,2,2j])array([False,  True,  True,  True,  True, False])

Previous topic

numpy.isfortran

Next topic

numpy.isrealobj

Quick search

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

[8]ページ先頭

©2009-2025 Movatter.jp