Movatterモバイル変換


[0]ホーム

URL:


SciPy

numpy.isrealobj

numpy.isrealobj(x)[source]

Return True if x is a not complex type or an array of complex numbers.

The type of the input is checked, not the value. So even if the inputhas an imaginary part equal to zero,isrealobj evaluates to Falseif the data type is complex.

Parameters:

x : any

The input can be of any type and shape.

Returns:

y : bool

The return value, False ifx is of a complex type.

Examples

>>>np.isrealobj(1)True>>>np.isrealobj(1+0j)False>>>np.isrealobj([3,1+0j,True])False

Previous topic

numpy.isreal

Next topic

numpy.isscalar

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

[8]ページ先頭

©2009-2025 Movatter.jp