Movatterモバイル変換


[0]ホーム

URL:


SciPy

numpy.iscomplexobj

numpy.iscomplexobj(x)[source]

Check for a complex type or an array of complex numbers.

The type of the input is checked, not the value. Even if the inputhas an imaginary part equal to zero,iscomplexobj evaluates to True.

Parameters:

x : any

The input can be of any type and shape.

Returns:

iscomplexobj : bool

The return value, True ifx is of a complex type or has at leastone complex element.

Examples

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

Previous topic

numpy.iscomplex

Next topic

numpy.isfortran

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

[8]ページ先頭

©2009-2025 Movatter.jp